Free Android CakePHP GMaps Articles by Bali Web Design

July 16, 2012

How to remove Strict Standards warning error on cakephp

Filed under: cakephp — admin @ 11:48 pm

After upgrading PHP version into 5.3.5, i got several Strict standards warning error on my cakephp installation. The error are look like this

Strict standards: Redefining already defined constructor for class Object in C:\wamp\www\cake\libs\object.php on line 69
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake\libs\object.php on line 94
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake\libs\security.php on line 48

This message is really bother me, i have try to set debug option on cake core.php file, but it doesn’t solved the problem. The error still show up. So i search on google for the solution. And one solution is by setting php value for error_reporting into 6143. You can either set this value on php.ini or root .htaccess file.

set on php.ini



error_reporting=E_ALL & ~E_STRICT

or you can set on root htacces inside cakephp root installation

php_value error_reporting 6143

But actually this setting also not fix my problem, although some people say this setting solve their problem.

So next solution is to update cakephp library into latest version. It doesn’t mean if you have cakephp 1.3 then you need to upgrade into cakephp 2, but i mean upgrade into latest update for that version, for example i was using cakephp 1.3.3, the latest version is cakephp 1.3.15.

Replace all files except app folder, since that are your application. This solution is solved problem for Strict Standards warning error on my cakephp package. Hopefully you are

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment