Showing posts with label joomla. Show all posts
Showing posts with label joomla. Show all posts

Sunday, December 01, 2013

Strict Standards Non-static method JLoader import should not be called statically joomla

If you are getting the Errors like below while loading your joomla website follow the steps below to solve this issue.

=======================
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/user/public_html/ libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/user/public_html/ libraries/joomla/loader.php on line 71
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/user/public_html/ libraries/joomla/import.php on line 32
=======================

SSH server as root user Open the file php.ini in any editor and change the below two settings.

=======================
changed error_reporting = E_ALL | E_STRICT to error_reporting = E_ALL & ~E_NOTICE
changed display_errors = On to display_errors = Off
=======================

If the above still doesn’t help you or if you donot have the root access, Do the following.

In the domains index.php file set it like inside the php division.

========
ini_set(‘display_errors’,0);
========

Restart apache

*Note DO not forget to restart apache after making any changes in php.ini