本帖主题: 关于织梦(dedecms)登陆后台出现空白页面问题,卡在login.php上
2012-7-31 10:14 AM No.1 |
发表人:hamtyb
社区短消息
TOP
|
hamtyb
Newbie
UID 15937
精华
0
积分 3
帖子 3
体力 5
威望 0
贡献 0
阅读权限 10
注册 2012-7-30
状态 离线
|
[广告]: 备案信息核验单 - 现行国内备案必看
今天自己安装了dedecms v5.7 GBK版本,然后安装了,登陆后台输入了用户名密码,可是卡在了login.php上上面,不知道为什么,然后在谷歌里面找了好久,说权限不够的,我给了整个织梦文件777的权限,依然如此,真心郁闷呐!!还有说修改data/common.inc.php这个文件。。。不过我这个是全新的啊,哪里需要修改这个。。。(PS:如果你的是搬家的,可能会遇到修改这个文件的时候)。
说说怎么来做吧。
在根目录下根据路径找到 /include/userlogin.class.php 这个文件,然后找到里面的keepuser()函数,准备把里面的@session_register 全部改写。
你会在里面看到这样的代码:
@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;
好了,我们全部修改成:
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;
|
|
回复:关于织梦(dedecms)登陆后台出现空白页面问题,卡在login.php上
2012-8-12 09:28 AM No.2 |
发表人:37wzzh
社区短消息
TOP
|
37wzzh
Newbie
UID 15873
精华
0
积分 8
帖子 8
体力 10
威望 0
贡献 0
阅读权限 10
注册 2012-5-31
状态 离线
|
|