问题
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 correctphp.ini
file. I've tried everything regardingE_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