DEDECMS后台登陆后显示空白页解决办法——PHP5.4环境下
发布:smiling 来源: PHP粉丝网 添加日期:2014-11-13 11:34:16 浏览: 评论:0
登陆DEDECMS后台输入用户名和密码后没有提示显示为空白,主要原因是php5.4的版本删除了session_register函数,打开文件include/userlogin.class.php在 function keepUser()内把如下代码:
- @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;
- //开源软件:phpfensi.com
- //替换成
- $_SESSION[$this->keepUserIDTag] = $this->userID;
- $_SESSION[$this->keepUserTypeTag] = $this->userType;
- $_SESSION[$this->keepUserChannelTag] = $this->userChannel;
- $_SESSION[$this->keepUserNameTag] = $this->userName;
- $_SESSION[$this->keepUserPurviewTag] = $this->userPurview;
- $_SESSION[$this->keepAdminStyleTag] = $adminstyle;
即把每个包含@session_register的语句删除,即可以解决该问题,或者换成其他版本的php.
Tags: DEDECMS后台登陆 DEDECMS后台空白
相关文章
- ·关于dedeCMS后台登陆验证码不显示或显示叉的几种解决办法(2014-11-14)
- ·DEDECMS5.7登陆后台后,页面空白无任何提示的解决方法(2014-11-13)
- ·dedecms后台空白页以及验证码不显示解决方法(2014-11-13)
- ·dedecms 后台发布后的文章一片空白的解决办法(2015-03-18)
- ·网站登录后台显示一片空白,处理方案(2015-09-28)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)