PHP - Strict Standards: Non-static method
Hello,
it is several cpanel account where i see errors on websites saying something about non static method...
[QUOTE]Strict Standards: Non-static method SmartyValidate::disconnect() should not be called statically in XXX on line XXX
Please how can i from WHM or CentOS command line set to ignore strict errors by default for all accounts?
Please how can i from WHM or CentOS command line set to ignore strict errors by default for all accounts?
-
In your global php.ini file ( /usr/local/lib/php.ini ) you could set the error_reporting: error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED - shows all except for notices and deprecation warnings error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT - shows all except for notices and strict standards warnings error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED - shows all except for notices, deprecation warnings and strict standards warnings After modifying error_reporting, you will probably need to restart apache ( /scripts/restartsrv_apache ) 0 -
Hello :) Note that you could also modify the "error_reporting" setting using the "Advanced Mode" via "WHM Home " Service Configuration " PHP Configuration Editor". Thank you. 0
Please sign in to leave a comment.
Comments
2 comments