discuz的新版本檢測和補丁功能已經關閉,導致後臺調用相關連接超時,引起後臺打不開
1 J( C: x6 S3 ?0 v
/ b1 H9 y% g. R J% { w' T6 T' O, r ^X3.4已經移除相關代碼,沒有此問題,建議升級/ `! w3 ?( v0 ~7 b) o) t
* `+ r; u) t" N* W8 q
Comsenz 核心產品 Discuz! X3.4 正式版【2017-08-01】: m: I2 h& w, }" s
http://www.discuz.net/thread-3825961-1-1.html
3 k: P. }# I9 d% U" m9 E(出處: Discuz! 官方站)9 e" _6 E) e, F( {
7 h% L0 L" i; E" x9 b9 k- U! J懶得修改的可以直接安裝免費插件解決:http://addon.discuz.com/?@freeaddon_killstuck.plugin
5 l$ c* ~) d0 d4 F2 k, S. n
@( U3 N1 o! M% G) O2 U/ ]X3.4以下的版本解決辦法
" ]. p! h; W! ?: y3 S/ D$ t1 v1 [後臺
( r. V1 R1 y4 {; K- p1 K4 K8 p打開:source/admincp/admincp_main.php
2 e2 \! L0 a: |/ N( K4 w
- w+ m2 d2 n. H4 r; _2 z删除(大概在37-60行). ?2 [4 s1 B" |3 e3 K/ g
" x7 X# c; l7 t- h8 o6 @. @1 h
, O* I: d/ U6 V& B- ]if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && ($_G['setting']['showpatchnotice'] == 1 || !isset($_G['cookie']['checkpatch']))) {
4 d5 I( F, I' L7 C: ^1 q $discuz_patch = new discuz_patch();: k5 V3 ], ?! ]/ B( ~# _7 |. l
if($_G['setting']['showpatchnotice'] == 1) {- u( ?2 ?% V3 C6 Y* M( U
$notice = $discuz_patch->fetch_patch_notice();; R) \) t- u- H6 s0 b$ U
if($notice['data']) {
$ ?$ ?3 T4 {# U7 N- M( {2 t $shownotice = '<div class="notice"><a href="'.$basescript.'?action=patch" id="notice">'.($notice['fixed'] ? $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';# F8 }- Y. _1 c$ r W
}+ k! b0 H. ]6 X' m9 e
}9 }& s ]" f( C- `( g$ k
if(!isset($_G['cookie']['checkpatch'])) {( ]+ d: ?$ p- o& s
$discuz_patch->check_patch();, E3 O8 M$ _- N' z- X+ A6 S8 G
}# ]% p" f/ b6 F# x2 ?! P
}
s' H4 ]# ]( k. f) @if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
, a1 J2 C9 g1 Z6 A $shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
4 j# f& l5 ^0 I}5 m f& |( ^+ t' d3 T
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
) V4 N. z! G3 w $discuz_upgrade = new discuz_upgrade();
$ j# P# E0 M" p if($discuz_upgrade->check_upgrade()) {
- {- \- `2 I7 `4 \. d if(empty($shownotice)) {
" K4 _" Q" y3 l( `5 w4 F $shownotice = '<div class="notice"><a href="'.$basescript.'?action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
+ x1 t" W9 a# \ [( S& Q }
' l% m( |: X7 B, |+ M: s }' B/ C: a2 w: M9 k& f* D
dsetcookie('checkupgrade', 1, 7200);) w& ], ]# N3 Q$ W2 `6 I
' q4 A5 F \$ k$ N$ N! E}
' m! h+ O+ N1 P% N
* h, ~2 Y& M' V; D
. |$ f( p- ?7 T前臺
9 v" ~! _2 j6 t; C3 r" y: h也有影響管理員打開速度的
; |* v- M6 \! A% k9 C0 q/ l
% v. |( c& }7 `$ l3 i5 m1 i下載替換文件 source/module/misc/misc_patch.php0 B6 K7 |7 O: [* _# U4 C b6 [0 [
misc_patch.php
(1.47 KB, 下載次數: 1189)
$ |: B5 c* s) t9 j也就是只保留IP異常提醒的代碼,用不到也可以刪了 M6 G, B1 @8 _! b3 R
. _( Q$ E9 M( W" i9 o8 u轉貼自:# y" f; }' l" j0 L3 Q; R) [+ T* D# `9 j
解決 Discuz!X3.4以下版本前臺打開卡慢、後臺登陸卡死或504錯誤等問題
) C* `0 a9 Q6 T4 n8 _, {& Y' h6 j- _4 }/ m
) M' k8 {( R; ^; f |
|