我将
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:
原文链接:https://www.f2er.com/php/133140.html如果您(或其他人)可以将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 ));