Strict Standards - Simple Newb Mistake?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Strict Standards - Simple Newb Mistake?

Postby r3ikigirl » 25. April 2013 18:30

Hi, I have a smattering of html knowledge and a boss whose website needs to be migrated to a newer version of Joomla before I can move it to a new host. I decided to use XAMPP for the first time to handle the upgrades locally. I installed XAMPP 1.8.1 successfully on my Win7HomePro machine and was able to view the default page in my browser. Then I removed the installation files from c:\xampp\htdocs and moved my site files into c:\xampp\htdocs. I modified my configuration.php file, and then tried to view localhost in my browser. I got a bunch of script errors:

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

I probably did something incredibly stupid, like forget to install or configure a database before moving all the files from htdocs, but I am also wondering if I have a PHP version problem. I've been reading any readmes and faqs I can get my hands on, and I've searched the forums for about an hour, but I'm scratching my head. Any help will be greatly appreciated.

Update: I installed the database, but I'm still getting the errors.
r3ikigirl
 
Posts: 1
Joined: 25. April 2013 18:13
XAMPP Version: 5.6.3
Operating System: Windows 7 Home Premium SP1

Re: Strict Standards - Simple Newb Mistake?

Postby Moore » 27. April 2013 09:01

Hi.. it's not a XAMPP problem.

There is no way you can personally fix those 'errors', the 'problem' is in Joomla itself, and those 'errors' should only be generated when using the error reporting level of 'E_STRICT'.

Although now in PHP 5.4 :

5.4.0 E_STRICT became part of E_ALL.


More info:
http://php.net/manual/en/function.error-reporting.php

--

When dealing with Joomla, you should probably just lower or disable the error reporting, especially once the site is live.

You would most likey only see those errors, when error reporting is set to maximum.. or with Joomla and PHP 5.4, the Joomla default error reporting level may be set to E_ALL.

In the joomla admin cp you can set error reporting level :

global configuration -> server -> server settings -> error reporting


You may have to set the level to none.

Changing error levels in Joomla (basically the same in all versions):
http://docs.joomlabamboo.com/using-joomla/how-to-enable-error-reporting-in-joomla-25

System Default: Joomla will inherit the error reporting from your php.ini.
So, if php.ini’s error_reporting variable is set to E_ALL and the display_errors variable (in php.ini) is set to 1,
then Joomla will display all the errors on your website (not good!).


More info :
http://www.itoctopus.com/error-reporting-in-joomla
http://www.ostraining.com/blog/joomla/warnings/

--

Alternatively in your sites template 'index.php' file, you could add this line at the top for example, to disable showing any errors in your pages:

Code: Select all
ini_set('display_errors',0);


--

Other Joomla related topics :
http://community.apachefriends.org/f/viewtopic.php?p=193187
http://community.apachefriends.org/f/viewtopic.php?p=182516
http://community.apachefriends.org/f/viewtopic.php?p=166802

--

If you need more help and you're feeling lucky, you might find the joomla forums more suitable.

Good luck. :)
Moore
 
Posts: 2
Joined: 27. April 2013 08:42
XAMPP Version: 5.6.3
Operating System: Windows 7 SP1 | XP SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: db5023 and 31 guests