织梦后台登录成功后显示空白怎么回事
网上有两种解决方法:
一种是说你曾用记事本编辑过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;
然后就可以登入后台了。
我用的第二种方法解决的
方法一:
打开data文件夹下configcacheincphp
找到
$cfg_search_time = ;
改为:
$cfg_search_time = 0;
方法二:
如果上面的不行,直接替换一个备份过的data文件夹
//解决方法:找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、设置相应的参数,点击确定。
4、编辑完文章后,点击右上角执行按钮。
5、然后打开织梦系统后台,选择相应的栏目,选择添加文档。
6、把文章标题等信息添加上,再把编辑器中的文章正文复制到新添加的文档正文中,点击确定,就完成了。
0条评论