Board logo

标题: 关于织梦(dedecms)登陆后台出现空白页面问题,卡在login.php上 [打印本页]

作者: hamtyb     时间: 2012-7-31 10:14 AM     标题: 关于织梦(dedecms)登陆后台出现空白页面问题,卡在login.php上

今天自己安装了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;
作者: 37wzzh     时间: 2012-8-12 09:28 AM

呵呵 不错哦




欢迎光临 梦游时光互联 (http://web.meyu.net/) Powered by Discuz! 4.0.0