Strict Standards Errors for PHP

If you are getting errors similar to:

Strict Standards: Non-static method JLoader::import() should not be called statically in /home/xxxx/public_html/xxxx/xxx.php

You can hide them by creating a php.ini either on the www root or specifically to the directory where the error occurs and placing the code as follows:

error_reporting = E_ALL | ~E_NOTICE
log_errors = On
error_log = "error.log"
display_errors = off

This basically redirects the errors to an "error.log" file. You might want to clear this out every now and then or just turn off log_errors to completely remove error logging.
  • 90 Users Found This Useful
Was this answer helpful?

Related Articles

What database settings do I use for scripts?

Server Hostname: localhost Database Username: <your username>_<database name> e.g....

How do I add a wildcard subdomain for Wordpress MU?

This can be easily done by logging into your cPanel control panel and clicking on "Subdomains"....

Do you support Silverstripe Hosting?

Yes, we run Linux servers designed to run the New Zealand developed Silverstripe application. If...

Fix permissions of all directories and files

To change all the directories to 755 (-rwxr-xr-x): find /home/xxx/public_html -type d -exec...

Can I change the PHP version on my site?

Our hosting nodes use CloudLinux which allows each site to choose the PHP version that the site...