Discuz论坛游客未登录搜索后出现 Discuz! System Error 错误!
Dsicuz论坛在会员未登录状态或者游客使用搜索功能时提示Discuz! System Error错误,错误提示如下:Discuz! System Error•您当前的访问请求当中含有非法字符,已经被系统拒绝PHP Debug•search.php(discuz_application->init)•source/class/discuz/discuz_application.php(discuz_application->_init_misc)
•source/class/discuz/discuz_application.php(discuz_application->_xss_check)
•source/class/discuz/discuz_application.php(system_error)
•source/function/function_core.php(discuz_error::system_error)
•source/class/discuz/discuz_error.php(discuz_error::debug_backtrace)测试Discuz! X3.1/Discuz! X3.2解决办法如下:登陆FTP查找 source/class/discuz/discuz_application.php 文件,查找如下代码:if (isset($_GET['GLOBALS']) ||isset($_POST['GLOBALS']) ||isset($_COOKIE['GLOBALS']) || isset($_FILES['GLOBALS'])) { system_error('request_tainting'); }
然后注释掉这段代码即可,注释代码方法有2种,如下:/*if (isset($_GET['GLOBALS']) ||isset($_POST['GLOBALS']) ||isset($_COOKIE['GLOBALS']) || isset($_FILES['GLOBALS'])) { system_error('request_tainting'); }*/或者:
//if (isset($_GET['GLOBALS']) ||isset($_POST['GLOBALS']) ||isset($_COOKIE['GLOBALS']) || isset($_FILES['GLOBALS'])) {
//system_error('request_tainting');
//}
然后保存覆盖原文件(修改代码前注意备份该文件),登陆论坛后台-工具-刷新缓存即可。
页:
[1]