Joomla "Strict Standards" Errors on Installation

Written by Brad Traversy on 19 May 2012.


We were building a client website on our localhost XAMMP server using Joomla 1.5. We had a strange error after the initial Joomla 1.5 installation. The site looked totally out of wack with about a hundred errors all starting with Strict Standards.  I have seen these errors but not during an install and never so many. Here are some of the examples of some of the errors/messages...

Strict Standards: Non-static method JFactory::getLanguage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomold\administrator\modules\mod_login\mod_login.php on line 21

Strict Standards: Non-static method JText::_() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomold\administrator\templates\khepri\login.php on line 66

Strict Standards: Non-static method JLoader::load() should not be called statically in C:\xampp\htdocs\joomold\libraries\loader.php on line 161

Untitled-1

Obviously, something was wrong here. The first thing I did was goto Global Configuration and changed the error value to minimum errors. This did not work. What did work was cchanging a line in the php.ini file and restarting Apahe.

If you are using XAMMP, goto c:\xammp\php\php.ini and edit the php.ini file. If you dont use a code editor, then choose "notepad" to open and edit the file.

Look around line 516 for ...

error_reporting = E_ALL | E_STRICT

Edit to change this to....

error_reporting = E_ALL & ~E_STRICT

Now open your XAMMP, WAMMP or MAMMP panel and click "Restart" or "Stop" then "Start"  your Apache service. This should do the trick


About The Author

Brad Traversy is a web developer/designer from Boston Massachusetts. He specializes in web development using open source content management systems such as Joomla, Drupal and Wordpress.

HEADER  

Shoaib
 
Thanks Man For Your Kind Help May God Bless You..
Iron
 
Mr.Brad can you please tell us is this the same routine when Joomla 1.5 web site is instaled on C panel.If it is not can you tell us the way to the solution of this problem like on www.peglagic.com.
Thanks in advance and wish you all the best.
Rahul
 
Just put this bunch of codes above of all other codes(at the top of the page) in the index.php file in your active joomla template:




Hope it'll solve the issue.
Asad
 
When I were busy with installing Joomla on the server I had an error Strict Standards: Non-static method JText::_() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs \joomold\admini strator\templat es\khepri\login .php on line 66
It cost me some few weeks to figure out what was wrong but when I red your article, It was just only some code that has to replaced by something else. Thank you for that!
Joomla installeren
nuzrath
 
Thanks a lot, that was a very quick help and saved me a lot of time, thanks a lot.! :)
have a nice day.!
Eva Muhatia
 
Thanx alot the code solved my problem
Latest News