<sup id="0sgeu"><center id="0sgeu"></center></sup>
<rt id="0sgeu"><small id="0sgeu"></small></rt><rt id="0sgeu"><center id="0sgeu"></center></rt>
<acronym id="0sgeu"></acronym><rt id="0sgeu"></rt>

DedeCMS 5.7登錄后臺空白的解決辦法

更新時間:2016-03-30 編輯:未知 關注人次:0 云搜索


安裝了Dedecms之后,登錄到后臺,輸入用戶名和密碼之后,頁面就變成了空白,也不會跳轉到index.php頁面。在網上搜索了一下,發現有些文章介紹是因為修改了include/common.inc.php和dede/config.php引起的。使用文本編輯器,發現也沒有所謂的BOM問題。安裝了Dedecms之后,登錄到后臺,輸入用戶名和密碼之后,頁面就變成了空白,也不會跳轉到index.php頁面。在網上搜索了一下,發現有些文章介紹是因為修改了include/common.inc.php和dede/config.php引起的。使用文本編輯器,發現也沒有所謂的BOM問題。

有查了一下,發現PHP環境為PHP 5.4.22,而Dedecms 5.7最好是在PHP 5.3下使用,一些函數在PHP 5.4下已經廢棄,導致了一些問題。

解決DedeCMS 5.7登錄后臺空白的解決辦法:

打開include/userlogin.class.php文件,找到function keepUser()

將代碼修改為如下:

function keepUser()
{
if($this->userID != ” && $this->userType != ”)
{
global $admincachefile,$adminstyle;
if(empty($adminstyle)) $adminstyle = ‘dedecms’;
/*@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;
PutCookie(‘DedeUserID’, $this->userID, 3600 * 24, ‘/’);
PutCookie(‘DedeLoginTime’, time(), 3600 * 24, ‘/’);
$this->ReWriteAdminChannel();
return 1;
}

修改后保存,就OK了。


本文地址: http://www.slhfoods.com/a/xinwenguandian/vipcms/2016/0330/147.html ,轉載請注明出處。

服務支持

我們珍惜您每一次在線詢盤,有問必答,用專業的態度,貼心的服務。

讓您真正感受到我們的與眾不同!

狼客人成网