dede织梦网站后台出现错误:“DedeCMS Error: (PHP 5.3 and above) Please set ‘request_order’ ini value to include C,G and P (recommended: ‘CGP’) in php.ini

dede织梦网站后台出现错误:“DedeCMS Error: (PHP 5.3 and above) Please set ‘request_order’ ini value to include C,G and P (recommended: ‘CGP’) in php.ini

解决方法:

打开位于include/common.inc.php文件的第32行到第36行。代码是这样的:

if(version_compare(PHP_VERSION, ‘5.3.0’, ‘>’))
{
if(strtoupper(ini_get(‘request_order’)) == ‘GP’)
exit(‘DedeCMS Error: (PHP 5.3 and above) Please set \’request_order\’ ini value to include C,G and P (recommended: \’CGP\’) in php.ini,
}

把这段代码进行了注释或直接删掉,问题解决。(注释方法每行代码最前面加二斜杠:“//”)

如下:

//if(version_compare(PHP_VERSION, ‘5.3.0’, ‘>’))
//{
//if(strtoupper(ini_get(‘request_order’)) == ‘GP’)
//exit(‘DedeCMS Error: (PHP 5.3 and above) Please set \’request_order\’ ini value to include C,G and P (recommended: \’CGP\’) in php.ini,
//}

原创文章,转载请注明:原文转载地址: http://www.ldhost.cn/jc/dede/354.html