首页 > CMS > 织梦DEDE > 正文

DEDECMS后台登陆后显示空白页解决办法——PHP5.4环境下

2024-07-12 08:42:42
字体:
来源:转载
供稿:网友

登陆DEDECMS后台输入用户名和密码后没有提示显示为空白,主要原因是php5.4的版本删除了session_register函数,打开文件include/userlogin.class.php在 function keepUser()内把如下代码:

  1. @session_register($this->keepUserIDTag); 
  2. $_SESSION[$this->keepUserIDTag] = $this->userID; 
  3. @session_register($this->keepUserTypeTag); 
  4. $_SESSION[$this->keepUserTypeTag] = $this->userType; 
  5. @session_register($this->keepUserChannelTag); 
  6. $_SESSION[$this->keepUserChannelTag] = $this->userChannel; 
  7. @session_register($this->keepUserNameTag); 
  8. $_SESSION[$this->keepUserNameTag] = $this->userName; 
  9. @session_register($this->keepUserPurviewTag); 
  10. $_SESSION[$this->keepUserPurviewTag] = $this->userPurview; 
  11. @session_register($this->keepAdminStyleTag); 
  12. $_SESSION[$this->keepAdminStyleTag] = $adminstyle
  13. //开源软件:Vevb.com 
  14. //替换成 
  15. $_SESSION[$this->keepUserIDTag] = $this->userID; 
  16. $_SESSION[$this->keepUserTypeTag] = $this->userType; 
  17. $_SESSION[$this->keepUserChannelTag] = $this->userChannel; 
  18. $_SESSION[$this->keepUserNameTag] = $this->userName; 
  19. $_SESSION[$this->keepUserPurviewTag] = $this->userPurview; 
  20. $_SESSION[$this->keepAdminStyleTag] = $adminstyle

即把每个包含@session_register的语句删除,即可以解决该问题,或者换成其他版本的php.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表