解決 Discuz!X3.4以下版本前臺打開卡慢、後臺登陸卡死或504錯誤等問題
discuz的新版本檢測和補丁功能已經關閉,導致後臺調用相關連接超時,引起後臺打不開X3.4已經移除相關代碼,沒有此問題,建議升級
Comsenz 核心產品 Discuz! X3.4 正式版【2017-08-01】
http://www.discuz.net/thread-3825961-1-1.html
(出處: Discuz! 官方站)
懶得修改的可以直接安裝免費插件解決:http://addon.discuz.com/?@freeaddon_killstuck.plugin
X3.4以下的版本解決辦法
後臺
打開:source/admincp/admincp_main.php
删除(大概在37-60行)
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && ($_G['setting']['showpatchnotice'] == 1 || !isset($_G['cookie']['checkpatch']))) {
$discuz_patch = new discuz_patch();
if($_G['setting']['showpatchnotice'] == 1) {
$notice = $discuz_patch->fetch_patch_notice();
if($notice['data']) {
$shownotice = '<div class="notice"><a href="'.$basescript.'?action=patch" id="notice">'.($notice['fixed'] ? $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';
}
}
if(!isset($_G['cookie']['checkpatch'])) {
$discuz_patch->check_patch();
}
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
$shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
$discuz_upgrade = new discuz_upgrade();
if($discuz_upgrade->check_upgrade()) {
if(empty($shownotice)) {
$shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
}
dsetcookie('checkupgrade', 1, 7200);
}
前臺
也有影響管理員打開速度的
下載替換文件 source/module/misc/misc_patch.php
也就是只保留IP異常提醒的代碼,用不到也可以刪了
轉貼自:
解決 Discuz!X3.4以下版本前臺打開卡慢、後臺登陸卡死或504錯誤等問題
頁:
[1]