dedecms后台登录之后,显示空白页面,这是怎么回事?

r_yaya 发布于 2013/04/04 21:32
阅读 3K+
收藏 0

@织梦网络 你好,想跟你请教个问题:dedecms后台登录之后,显示空白页面,这是怎么回事?我的是win7系统,但是在xp系统中是不存在这类问题的。

加载中
0
skyline520
skyline520

看看你的php 是不是PHP5.4.0 版本太高了,dedecms玩不转了,换个低点的版本就好了

0
vps评测资讯网
vps评测资讯网
推荐使用php5.3  ,新版本的有bug
0
古红平
古红平

估计你装的php版本问题,遇到过2次。都是这样解决的。

来源地址:http://blog.csdn.net/vince6799/article/details/8570115

解决方法是:

找到include文件夹中的userlogin.class.php文件中

@session_register下的所有语句屏蔽掉。红色部分

function keepUser()
{
if($this->userID != ” && $this->userType != ”)
{
global $admincachefile,$adminstyle;
if(empty($adminstyle)) $adminstyle = ‘dedecms’;

/*@session_register($this->keepUserIDTag);*/
$_SESSION[$this->keepUserIDTag] = $this->userID;

/* @session_register($this->keepUserTypeTag);*/
$_SESSION[$this->keepUserTypeTag] = $this->userType;

/* @session_register($this->keepUserChannelTag);*/
$_SESSION[$this->keepUserChannelTag] = $this->userChannel;

/*@session_register($this->keepUserNameTag);*/
$_SESSION[$this->keepUserNameTag] = $this->userName;

/* @session_register($this->keepUserPurviewTag);*/
$_SESSION[$this->keepUserPurviewTag] = $this->userPurview;

/*@session_register($this->keepAdminStyleTag);*/
$_SESSION[$this->keepAdminStyleTag] = $adminstyle;

PutCookie(‘DedeUserID’, $this->userID, 3600 * 24, ‘/’);
PutCookie(‘DedeLoginTime’, time(), 3600 * 24, ‘/’);

$this->ReWriteAdminChannel();

return 1;
}
else{….以下省略

0
r_yaya
r_yaya

引用来自“古红平”的答案

估计你装的php版本问题,遇到过2次。都是这样解决的。

来源地址:http://blog.csdn.net/vince6799/article/details/8570115

解决方法是:

找到include文件夹中的userlogin.class.php文件中

@session_register下的所有语句屏蔽掉。红色部分

function keepUser()
{
if($this->userID != ” && $this->userType != ”)
{
global $admincachefile,$adminstyle;
if(empty($adminstyle)) $adminstyle = ‘dedecms’;

/*@session_register($this->keepUserIDTag);*/
$_SESSION[$this->keepUserIDTag] = $this->userID;

/* @session_register($this->keepUserTypeTag);*/
$_SESSION[$this->keepUserTypeTag] = $this->userType;

/* @session_register($this->keepUserChannelTag);*/
$_SESSION[$this->keepUserChannelTag] = $this->userChannel;

/*@session_register($this->keepUserNameTag);*/
$_SESSION[$this->keepUserNameTag] = $this->userName;

/* @session_register($this->keepUserPurviewTag);*/
$_SESSION[$this->keepUserPurviewTag] = $this->userPurview;

/*@session_register($this->keepAdminStyleTag);*/
$_SESSION[$this->keepAdminStyleTag] = $adminstyle;

PutCookie(‘DedeUserID’, $this->userID, 3600 * 24, ‘/’);
PutCookie(‘DedeLoginTime’, time(), 3600 * 24, ‘/’);

$this->ReWriteAdminChannel();

return 1;
}
else{….以下省略

返回顶部
顶部