Page 1 of 1

JLoader::import failure after Joomla instal - localhost

Posted: Sat Jan 16, 2010 8:50 am
by bokfok
Hi,

I am new to Joomla and CMS packages (trying out Joomla out as educational/familiarisation step).

After my Joomla install on localhost, any Joomla page opened (including initial blank page after install from Joomla root) shows hundreds of following lines:

"Strict Standards: Non-static method JLoader::import() should not be called statically in /opt/lampp/htdocs/joomla15/libraries/joomla/import.php on line 29

Strict Standards: Non-static method JLoader::register() should not be called statically in /opt/lampp/htdocs/joomla15/libraries/loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in /opt/lampp/htdocs/joomla15/libraries/joomla/import.php on line 32

Strict Standards: Non-static method JLoader::register() should not be called statically in /opt/lampp/htdocs/joomla15/libraries/loader.php on line 71

Strict Standards: Non-static method JLoader::load() should not be called statically in /opt/lampp/htdocs/joomla15/libraries/loader.php on line 161

Strict Standards: Non-static method JLoader::register() should not be called statically in /opt/lampp/htdocs/joomla15/libraries/loader.php on line 138"

etc., etc., etc........

Any ideas what maybe wrong?

Re: JLoader::import failure after Joomla instal - localhost

Posted: Sat Jan 16, 2010 9:52 am
by Alex Dobrin
You need to deactivate the display of PHP errors and warnings from your php.ini.
You could contact your hosting provider about it or you could do it yourself ( if you have access to that file ).
This topic might help:
http://forum.joomla.org/viewtopic.php?f=429&t=271244

Re: JLoader::import failure after Joomla instal - localhost

Posted: Sat Jun 12, 2010 8:30 pm
by sone12
Alex wrote:You need to deactivate the display of PHP errors and warnings from your php.ini.
You could contact your hosting provider about it or you could do it yourself ( if you have access to that file ).
If you not have access to the php.ini file you can try to edit your htaccess file. (You find this file in the root of your Joomla! installation. If the name is htaccess.txt, remember to rename it to .htaccess .

Write this to your .htaccess file

Code: Select all

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0

Re: JLoader::import failure after Joomla instal - localhost

Posted: Sun Feb 06, 2011 4:41 pm
by rosary0215
sone12 wrote:
algis wrote:You need to deactivate the display of PHP errors and warnings from your php.ini.
You could contact your hosting provider about it or you could do it yourself ( if you have access to that file ).
If you not have access to the php.ini file you can try to edit your htaccess file. (You find this file in the root of your Joomla! installation. If the name is htaccess.txt, remember to rename it to .htaccess .

Write this to your .htaccess file

Code: Select all

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0

This worked for me! I was wracking my brain trying to figure out why my php was giving me trouble, and I didn't have access to my php.ini file and this did the trick. THank you!

Re: JLoader::import failure after Joomla instal - localhost

Posted: Fri Feb 18, 2011 3:53 pm
by felipe71ar
Thanks for the htaccess trick !!!
I have the same problem, Joomla in localhost with XAMPP 1.74 for testing purposes.

Re: JLoader::import failure after Joomla instal - localhost

Posted: Tue Feb 22, 2011 6:38 pm
by excel368
I have the exact same problem , but the solution seems to be pretty vague , the htaccess.txt file already contains some text , do i paste the new code into it , or do i just replace it alltogether , and regarding the renaming , do i specifically rename it to .htaccess.txt

Re: JLoader::import failure after Joomla instal - localhost

Posted: Tue Feb 22, 2011 6:48 pm
by OOmNezar
sone12 wrote:
Alex wrote:You need to deactivate the display of PHP errors and warnings from your php.ini.
You could contact your hosting provider about it or you could do it yourself ( if you have access to that file ).
If you not have access to the php.ini file you can try to edit your htaccess file. (You find this file in the root of your Joomla! installation. If the name is htaccess.txt, remember to rename it to .htaccess .

Write this to your .htaccess file

Code: Select all

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
http://forum.joomla.org/viewtopic.php?f=429&t=271244
http://docs.joomla.org/Htaccess_examples_(security)

Re: JLoader::import failure after Joomla instal - localhost

Posted: Wed Mar 16, 2011 10:13 am
by stavroch
I change the .htaccess but I get white page on the front and back end.

Re: JLoader::import failure after Joomla instal - localhost

Posted: Thu Nov 17, 2011 6:30 am
by threemusketeer
Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 29

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 32

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Non-static method JRequest::clean() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 33

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\environment\request.php on line 463

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\environment\request.php on line 464

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\environment\request.php on line 465

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\environment\request.php on line 466

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\environment\request.php on line 467

Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\environment\request.php on line 468

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 35

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 38

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 39

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 46

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 47

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 50

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 53

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 54

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 57

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\import.php on line 58

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Non-static method JFactory::getApplication() should not be called statically in C:\xampp\htdocs\E-Commerce\administrator\index.php on line 33

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Redefining already defined constructor for class JObject in C:\xampp\htdocs\E-Commerce\libraries\joomla\base\object.php on line 57

Strict Standards: Non-static method JApplication::getInstance() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\factory.php on line 46

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Non-static method JApplicationHelper::getClientInfo() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\application\application.php on line 130

Strict Standards: Declaration of JAdministrator::getRouter() should be compatible with that of JApplication::getRouter() in C:\xampp\htdocs\E-Commerce\administrator\includes\application.php on line 293

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 71

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\E-Commerce\libraries\joomla\application\application.php on line 726

Strict Standards: Non-static method JFactory::_createConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\E-Commerce\libraries\joomla\factory.php on line 73

Strict Standards: Non-static method JLoader::import() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 186

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\joomla\registry\registry.php on line 19

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

Strict Standards: Non-static method JLoader::register() should not be called statically in C:\xampp\htdocs\E-Commerce\libraries\loader.php on line 138

Strict Standards: Non-static method JUtility::getHash() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\E-Commerce\libraries\joomla\application\application.php on line 99

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\E-Commerce\libraries\joomla\utilities\utility.php on line 111

Strict Standards: Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\E-Commerce\libraries\joomla\application\application.php on line 384

Strict Standards: Non-static method JFactory::getSession() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\E-Commerce\libraries\joomla\application\application.php on line 764



please help me...

Re: JLoader::import failure after Joomla instal - localhost

Posted: Fri Nov 18, 2011 9:31 am
by OOmNezar
Already try to set it up in Global Configuration > Server > Error Reporting ?
http://docs.joomla.org/Help17:Site_Glob ... ion#Server

Re: JLoader::import failure after Joomla instal - localhost

Posted: Fri Feb 24, 2012 6:32 am
by adry803
sone12 wrote:
Alex wrote:You need to deactivate the display of PHP errors and warnings from your php.ini.
You could contact your hosting provider about it or you could do it yourself ( if you have access to that file ).
If you not have access to the php.ini file you can try to edit your htaccess file. (You find this file in the root of your Joomla! installation. If the name is htaccess.txt, remember to rename it to .htaccess .

Write this to your .htaccess file

Code: Select all

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
You are the man. That did the trick for me too. Thanks!