JLoader::import failure after Joomla instal - localhost

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
bokfok
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jan 16, 2010 8:38 am

JLoader::import failure after Joomla instal - localhost

Post by bokfok » Sat Jan 16, 2010 8:50 am

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?

Alex Dobrin
Joomla! Hero
Joomla! Hero
Posts: 2487
Joined: Wed Jun 07, 2006 9:10 am
Location: Brasov - Romania
Contact:

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

Post by Alex Dobrin » Sat Jan 16, 2010 9:52 am

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
My latest project - http://www.extraglaze.co.uk/

User avatar
sone12
Joomla! Champion
Joomla! Champion
Posts: 5446
Joined: Wed Oct 11, 2006 1:12 pm
Location: Kristiansand, Norway
Contact:

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

Post by sone12 » Sat Jun 12, 2010 8:30 pm

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
Kristian P. Granrud

rosary0215
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Oct 17, 2010 4:48 pm

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

Post by rosary0215 » Sun Feb 06, 2011 4:41 pm

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!

User avatar
felipe71ar
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Mar 13, 2009 8:08 pm
Location: Argentina
Contact:

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

Post by felipe71ar » Fri Feb 18, 2011 3:53 pm

Thanks for the htaccess trick !!!
I have the same problem, Joomla in localhost with XAMPP 1.74 for testing purposes.

excel368
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 22, 2011 5:52 pm

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

Post by excel368 » Tue Feb 22, 2011 6:38 pm

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

User avatar
OOmNezar
Joomla! Ace
Joomla! Ace
Posts: 1869
Joined: Mon Sep 07, 2009 3:18 am

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

Post by OOmNezar » Tue Feb 22, 2011 6:48 pm

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)
coffee & smoke just fine
OOm Nezar

stavroch
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Wed Feb 15, 2006 10:23 pm

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

Post by stavroch » Wed Mar 16, 2011 10:13 am

I change the .htaccess but I get white page on the front and back end.

threemusketeer
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Nov 17, 2011 6:15 am

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

Post by threemusketeer » Thu Nov 17, 2011 6:30 am

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...

User avatar
OOmNezar
Joomla! Ace
Joomla! Ace
Posts: 1869
Joined: Mon Sep 07, 2009 3:18 am

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

Post by OOmNezar » Fri Nov 18, 2011 9:31 am

Already try to set it up in Global Configuration > Server > Error Reporting ?
http://docs.joomla.org/Help17:Site_Glob ... ion#Server
coffee & smoke just fine
OOm Nezar

adry803
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Feb 24, 2012 6:30 am
Location: 北京, China

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

Post by adry803 » Fri Feb 24, 2012 6:32 am

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!


Locked

Return to “Installation 1.5”