DedeCMS Error: (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P (recommended: 'CGP') in php.ini,more... (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P (recommended: 'CGP') in php.ini 由于在PHP最新的版本中增加了一个配置项目“request_order”,默认值为“GP”,这个存在一定的安全风险。这里我们建议用户将配置更改为“CGP” 可以在phpinfo中查看对应的php.ini配置目录,找到下面选项: 1 request_order = "GP" 更改为 1 request_order = "CGP" 重启服务器后即可。 ==============个别的网站更改也提示 DedeCMS Error: (PHP 5.3 and above) Please set request_order ================ 在 FTP 里,找到文件夹include,右键编辑“common.inc.php”找到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, 看到上面代码中的GP了吗?将 'GP’改成'C ======此时这个问题解决了,但是再登陆后台就显示一片空白了; 一般后台升级后数据库data路径会出现问题,是因为我们为了安全而会把data数据库放进根目录的上一层去,这时升级后后台会出现一片空白, 以下就是解决方法,希望大家和我一样遭遇的童鞋也能解决问题。 先看下 include/common.inc.php这个文件,下载下来后用DW编辑 把 //error_reporting(E_ALL); error_reporting(E_ALL || ~E_NOTICE); 改为 error_reporting(E_ALL); //error_reporting(E_ALL || ~E_NOTICE); 这时你打开后台就会显示错误的路径: 例如:Warning:require_once(D:/wwwroot/zgdxbw/wwwroot/data/config.cache.inc.php)[function.require-once]: failed to open stream: No such file or directory inD:\wwwroot \zgdxbw\wwwroot\include\common.inc.php on line 110 这个意思是说include\common.inc.php的 110行里找不到config.cache.inc.php的文件; 是因为更新文件的时候,系统会修改上图的这个data路径为默认,你改为你现在的路径就行,如../data表示上一层的意思,改后,把 //error_reporting(E_ALL); // error_reporting(E_ALL || ~E_NOTICE); 让系统不提示错误,这时你的后台就可以打开了。 DedeCMS Error: (PHP 5.3 and above) Please set request_order 来源:http://help./install-use/apply/2013/0715/2325.html Dede织梦系统后台升级更新后出现的空白: 来源:http://blog.csdn.net/baidianfeng008/article/details/8196500 |
|
来自: kpengfang > 《dedecms相关》