解决 Discuz X3.2后台admin.php登陆卡死、504等问题

最近今天discuzX3.2后台登录异常卡顿,主要原因是discuz的新版本检测和补丁功能已经关闭,导致后台调用相关链接时超时,引起后台打不开 X3.4已经移除相关代码,没有此问题,建议升级 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);
}*/

注释一下代码,后台打开非常速度!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值