Reputation: 495
I'm facing an issue while turning
Configure::write('debug', 0);
The brief error looks something like:
Strict Standards: Non-static method CakeLog::handleError() should not be called statically in /var/www/.../cake/libs/controller/controller.php on line 373
Note: I'm using cakePHP 1.3.7
Upvotes: 0
Views: 8324
Reputation: 56
Im no expert on cake php - but a simple install + test + documentation at .. http://book.cakephp.org/view/1584/Error-logging suggests that when your debug is turned to 0, your logging still continues logging for warnings and fatal errors therefore to turn of debug completely you also may need the logging turned to false.
Configure::write('log', false);
Extract: Errors are now logged when Configure::write('debug', 0); Would log only warning and fatal errors. Setting Configure::write('log', false); will disable error logging when debug = 0.
Also in the base controller.php (at libs/controller/controller.php there is no handleError code - was this added by your developers?)
Upvotes: 1
Reputation: 6761
Try putting the following in your bootstrap file (/app/config/boostrap.php)
error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
This is the suggested place for configuration of this kind.
Upvotes: 0