织梦重新安装空白问题,第1张

//解决方法:找include/userloginclassphp里面的keepuser()函数,将其修改为以下代码即可

function keepUser(){

    if($this->userID != '' && $this->userType != ''){

                global $admincachefile,$adminstyle;

                if(empty($adminstyle)) $adminstyle = 'dedecms';

                

                if (!isset($_SESSION[$this->keepUserIDTag]))

                

                $_SESSION[$this->keepUserIDTag] = $this->userID;

                if (!isset($_SESSION[$this->keepUserTypeTag]))

                

                $_SESSION[$this->keepUserTypeTag] = $this->userType;

                if (!isset($_SESSION[$this->keepUserChannelTag]))

                

                $_SESSION[$this->keepUserChannelTag] = $this->userChannel;

                if (!isset($_SESSION[$this->keepUserNameTag]))

                

                $_SESSION[$this->keepUserNameTag] = $this->userName;

                if (!isset($_SESSION[$this->keepUserPurviewTag]))

                

                $_SESSION[$this->keepUserPurviewTag] = $this->userPurview;

                if (!isset($_SESSION[$this->keepAdminStyleTag]))

                

                $_SESSION[$this->keepAdminStyleTag] = $adminstyle;

                

                

                PutCookie('DedeUserID', $this->userID, 3600  24, '/');

                PutCookie('DedeLoginTime', time(), 3600  24, '/');

                

                $this->ReWriteAdminChannel();

                

                return 1;

        }else{

              return -1;

        }

}

检查:

1、所在栏目的频道是否为默认的文章频道还是自己添加的新模块,如果是后者,要注意设置相应的参数,文章不多的情况下最好是使用文章频道

2、检查设置的栏目上是否有设置相应的模板和文件路径

3、最严重的是服务器目录权限不够,可以先尝试不生成静态来检查。

祝你顺利解决问题

再重新还原一次,如果还是空白,说明你备份时候忘了把系统参数表勾选备份。可以到install目录找到sql-dfdatatxt 文件,打开后拷贝INSERT INTO `#@__sysconfig` VALUES这部分内容,使用后台自带SQL命令行工具,导入数据库

网上有两种解决方法:

一种是说你曾用记事本编辑过dede的php文件

2是说你得修改

找include/userloginclassphp里面的keepuser()函数,

把@session_register 全部改写, 虽然不知道这个@是什么意思

把@session_register($this->keepUserIDTag); 注释掉,然后改为

if (!isset($_SESSION[$this->keepUserIDTag]))

全部有6个。

如下:

if (!isset($_SESSION[$this->keepUserIDTag]))

//@session_register($this->keepUserIDTag);

$_SESSION[$this->keepUserIDTag] = $this->userID;

if (!isset($_SESSION[$this->keepUserTypeTag]))

//@session_register($this->keepUserTypeTag);

$_SESSION[$this->keepUserTypeTag] = $this->userType;

if (!isset($_SESSION[$this->keepUserChannelTag]))

//@session_register($this->keepUserChannelTag);

$_SESSION[$this->keepUserChannelTag] = $this->userChannel;

if (!isset($_SESSION[$this->keepUserNameTag]))

//@session_register($this->keepUserNameTag);

$_SESSION[$this->keepUserNameTag] = $this->userName;

if (!isset($_SESSION[$this->keepUserPurviewTag]))

//@session_register($this->keepUserPurviewTag);

$_SESSION[$this->keepUserPurviewTag] = $this->userPurview;

if (!isset($_SESSION[$this->keepAdminStyleTag]))

//@session_register($this->keepAdminStyleTag);

$_SESSION[$this->keepAdminStyleTag] = $adminstyle;

然后就可以登入后台了。

我用的第二种方法解决的

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » 织梦重新安装空白问题

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情