Wampserver cakephp 1.3 Strict standards error

自闭症网瘾萝莉.ら 提交于 2019-12-23 02:07:10

问题


I'm currently growing crazy over my new Wampserver at the moment. I switched to a new computer and installed Wamp and moved my cakephp 1.3 folder to the C:\wamp\www folder, and all I get is this error:

Here's some facts I'm aware of and stuff I'm already tried:

  • This is an existing project, and I can't just go to CakePHP 2 since it may break the code
  • I have edited the error_reporting in the correct php.ini file. I've tried everything regarding E_ALL & ~E_DEPRECATED & ~E_STRICT
  • When changing the php.ini file, I have done everything from restart my windows to restarting the Wampserver

Does anyone know what I'm missing? It's frustrating to go through 20 guides and answers whom should solve the problem but doesn't.

The errors still exists, and the rest of the site works as intended.

Any help is greatly appreciated!


回答1:


Upgrade to the latest 1.3 stable release (1.3.15), it already sets error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); internally.

Edit: Just to clarify further you must be using an older 1.3 release which sets error_reporting(E_ALL & ~E_DEPRECATED); in the core thereby overriding the reporting level you set in your php.ini



来源:https://stackoverflow.com/questions/12565328/wampserver-cakephp-1-3-strict-standards-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!