Shape 5

Joomla Templates => New Vision - Club => : shryart July 24, 2013, 01:34:22 PM



: Need help: "Strict Standards" error messages randomly started showing up
: shryart July 24, 2013, 01:34:22 PM
Hi, my site http://folsomtool.com randomly started showing a bunch of error messages on the site that say things like:

Strict Standards: Declaration of JCacheControllerPage::store() should be compatible with JCacheController::store($data, $id, $group = NULL) in /home/folsomto/public_html/libraries/joomla/cache/controller/page.php on line 199

I haven't logged into the site in a couple months, and I haven't made any changes that could have caused this. The errors just showed up within the last week or two. Not only are the error messages visible, but the whole site looks out of whack.

Does anyone know how this could have happened, and know how to fix it?


: Re: Need help: "Strict Standards" error messages randomly started showing up
: shryart July 25, 2013, 09:33:46 AM
Here are some of the other error messages I'm getting:

Strict Standards: Only variables should be assigned by reference in /home/folsomto/public_html/templates/new_vision/vertex/cms_core_functions.php on line 12

Strict Standards: Non-static method S5modMainMenuHelper::S5buildXML() should not be called statically, assuming $this from incompatible context in /home/folsomto/public_html/templates/new_vision/vertex/s5flex_menu/default.php on line 43

But there are several more like that.

I have gone into Global Configuration > Server Settings and set Error Reporting to none. This did clear up most of the errors on the home page (http://folsomtool.com) but when you click any links on the page, all other pages have many error messages still. Even if you click on the home page, and it goes to http://folsomtool.com/index.php - basically any page that ends in .php - the errors show.

I have done a lot of searching on the web for answers, and I'm aware that people say to make changes to php.ini, however I don't have access to that file, as I'm not running my site on a local server. It's actually online, hosted by x10hosting. I have emailed my hosting company twice, asking for help, and there has been no response from them.

Is there any other practical solution I can try?


: Re: Need help: "Strict Standards" error messages randomly started showing up
: mikenicoll July 25, 2013, 11:03:55 AM
Hello,

This is due to PHP on your server being run with strict standards which shouldn't be done when using Joomla.

In the php.ini file in PHP/Apache (not your site files)

Find:

error_reporting = E_ALL | E_STRICT
display_errors = On

Change To:

error_reporting = E_ALL & ~E_STRICT
display_errors = Off

Your host can also help with this if you are having difficulty.

-Mike