更新到php 5.4.9后出现静态标准错误
发布时间:2020-12-13 16:03:26 所属栏目:PHP教程 来源:网络整理
导读:我将 PHP更新到版本5.4后出现以下错误 Strict Standards: Non-static method Debugger::invoke() should not be called statically,assuming $this from incompatible context in /usr/share/php/cake/libs/debugger.php on line 575 Strict Standards: Non-
我将
PHP更新到版本5.4后出现以下错误
Strict Standards: Non-static method Debugger::invoke() should not be called statically,assuming $this from incompatible context in /usr/share/php/cake/libs/debugger.php on line 575 Strict Standards: Non-static method Debugger::getInstance() should not be called statically,assuming $this from incompatible context in /usr/share/php/cake/libs/debugger.php on line 575 我已经尝试过以下解决方案 Error while Disabling error reporting in CakePHP Cakephp doesn’t work after installing php5-curl package(无法找到“Cake”文件夹,因为我已经烘焙了我的项目) Wampserver cakephp 1.3 Strict standards error How to eliminate php5 Strict standards errors? PHP 5 disable strict standards error https://stackoverflow.com/questions/11799085/turn-off-php-strict-standards?lq=1(无法关闭错误) 每次更改后清除蛋糕缓存,Web浏览器缓存,Cookie和重新启动的服务器.甚至尝试过私密浏览和chrome,firefox,也就是.
我相信这是因为这个应用程序是基于较旧版本的CakePHP构建的,它可能会使用一些不推荐使用的函数.
如果您(或其他人)可以将Cake升级到新的稳定分支,那将是非常棒的. 截至目前,在您的core.php中尝试此操作,您可以从错误报告中删除E_STRICT: 即转到app / Config / core.php查找 Configure::write('Error',array( 'handler' => 'ErrorHandler::handleError','level' => E_ALL & ~E_DEPRECATED,'trace' => true )); 把它换成 Configure::write('Error','level' => E_ALL & ~E_STRICT & ~E_DEPRECATED,'trace' => true )); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |