SASAOO

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 56|回复: 0

WAMPSERVER安装DEDECMS登陆后台管理页面空白解决方案

[复制链接]

22

主题

28

帖子

112

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
112
发表于 2019-6-17 22:20:38 | 显示全部楼层 |阅读模式
找include/userlogin.class.php里面的keepuser()函数,把@session_register 全部改写, 虽然不知道这个@是什么意思把@session_register($this->keepUserIDTag);    注释掉,然后改为if (!isset($_SESSION[$this->keepUserIDTag]))全部有6个。如下:
  1. if (!isset($_SESSION[$this->keepUserIDTag]))
  2. //@session_register($this->keepUserIDTag);   
  3. $_SESSION[$this->keepUserIDTag] = $this->userID;
  4. if (!isset($_SESSION[$this->keepUserTypeTag]))
  5. //@session_register($this->keepUserTypeTag);
  6. $_SESSION[$this->keepUserTypeTag] = $this->userType;
  7. if (!isset($_SESSION[$this->keepUserChannelTag]))
  8. //@session_register($this->keepUserChannelTag);
  9. $_SESSION[$this->keepUserChannelTag] = $this->userChannel;
  10. if (!isset($_SESSION[$this->keepUserNameTag]))
  11. //@session_register($this->keepUserNameTag);
  12. $_SESSION[$this->keepUserNameTag] = $this->userName;
  13. if (!isset($_SESSION[$this->keepUserPurviewTag]))
  14. //@session_register($this->keepUserPurviewTag);
  15. $_SESSION[$this->keepUserPurviewTag] = $this->userPurview;
  16. if (!isset($_SESSION[$this->keepAdminStyleTag]))
  17. //@session_register($this->keepAdminStyleTag);
  18. $_SESSION[$this->keepAdminStyleTag] = $adminstyle;
复制代码

然后就可以登入后台了。问题原因:session_register,php5.4移除了这个函数,版本里说明,继续使用该函数会产生错误。if (!isset($_SESSION[$this->keepUserTypeTag]))改成这个方式就可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|SASAOO.

GMT+8, 2019-7-24 16:28 , Processed in 0.093750 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表