婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網站建設 > 建站知識 > DedeCMS不支持PHP5.3、5.4及以上版本后臺500錯誤白屏

DedeCMS不支持PHP5.3、5.4及以上版本后臺500錯誤白屏

POST TIME:2021-05-24 17:36

今天把系統換成了windows server 2008 r2 同時將PHP環境提升至PHP5.5版本,測試PHPinfo的時候一點問題都沒有,但是登陸dede后臺卻顯示500錯誤,這應該怎么解決呢?百度了一下發現dede不支持PHP5.3、PHP5.4及以上版本了,主要原為是php5.4的版本廢除了session_register函數
可以采用如$_SESSION[$this->keepUserIDTag] = $this->userID;

這種方式處理完整代碼如下

首先打開 include/userlogin.class.php這個文件,在287行到308行原內容如下:

@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, ‘/’);

替換成

if(empty($adminstyle)) $adminstyle = ‘dedecms’;
//@session_register($this->keepUserIDTag);
$_SESSION[$this->keepUserIDTag] = $this->keepUserIDTag;
$_SESSION[$this->keepUserIDTag] = $this->userID;
//@session_register($this->keepUserTypeTag);
$_SESSION[$this->keepUserTypeTag] = $this->keepUserTypeTag;
$_SESSION[$this->keepUserTypeTag] = $this->userType;
// @session_register($this->keepUserChannelTag);
$_SESSION[$this->keepUserChannelTag] = $this->keepUserChannelTag;
$_SESSION[$this->keepUserChannelTag] = $this->userChannel;
//@session_register($this->keepUserNameTag);
$_SESSION[$this->keepUserNameTag] = $this->keepUserNameTag;
$_SESSION[$this->keepUserNameTag] = $this->userName;
//@session_register($this->keepUserPurviewTag);
$_SESSION[$this->keepUserPurviewTag] = $this->keepUserPurviewTag;
$_SESSION[$this->keepUserPurviewTag] = $this->userPurview;
// @session_register($this->keepAdminStyleTag);
$_SESSION[$this->keepAdminStyleTag] = $this->keepAdminStyleTag;
$_SESSION[$this->keepAdminStyleTag] = $adminstyle;
PutCookie(‘DedeUserID’, $this->userID, 3600 * 24, ‘/’);
PutCookie(‘DedeLoginTime’, time(), 3600 * 24, ‘/’);




收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 襄城县| 红桥区| 西林县| 宿州市| 武夷山市| 汶上县| 隆化县| 双流县| 化隆| 监利县| 文山县| 萍乡市| 临漳县| 崇仁县| 鄂尔多斯市| 盐城市| 郴州市| 西乌珠穆沁旗| 荥经县| 卢氏县| 连城县| 延津县| 旅游| 丹凤县| 福鼎市| 文山县| 南昌县| 疏勒县| 四会市| 昆山市| 渭源县| 汉源县| 库伦旗| 津市市| 洛南县| 宾川县| 安徽省| 克拉玛依市| 镇平县| 台北县| 吴川市|