VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: agps on December 17, 2013, 21:24:33 PM

Title: Strict Standards in backend
Post by: agps on December 17, 2013, 21:24:33 PM
Hi,

In VM backend there are a lot of Strict Standards notifications. I have set Error Reporting = System Default (or None) but the Strict Standards are still appear. In frontend everything is fine. The php error_reporting is 30711

Strict Standards: Non-static method SimplePie_Misc::fix_protocol() should not be called statically, assuming $this from incompatible context in /home/XXX/public_html/libraries/simplepie/simplepie.php on line 833

Joomla 2.5.16 & VM 2.0.26
Title: Re: Strict Standards in backend
Post by: jenkinhill on December 17, 2013, 23:32:31 PM
PHP5.4? For some servers you need to add a php.in in the Joomla administrator directory to turn off standard reports.
Title: Re: Strict Standards in backend
Post by: agps on December 17, 2013, 23:41:50 PM
Yes php 5.4.21

I have added a php.ini in administrator folder with the following line but nothing changed.

error_reporting = off

In my php editor I have error_reporting E_ALL | E_DEPRECATED | E_STRICT
Title: Re: Strict Standards in backend
Post by: jenkinhill on December 18, 2013, 09:11:47 AM
Use this

log_errors = off
display_errors = off
Title: Re: Strict Standards in backend
Post by: agps on December 18, 2013, 09:46:49 AM
I did it but nothing changed.

In System Information > PHP Settings and PHP Information the values of display_errors and log_errors are Off.
Title: Re: Strict Standards in backend
Post by: balai on December 18, 2013, 10:43:42 AM
Try doing the same into an .htaccess file
Title: Re: Strict Standards in backend
Post by: agps on December 19, 2013, 11:35:31 AM
Βoth solutions did not work.
Title: Re: Strict Standards in backend
Post by: Milbo on December 19, 2013, 11:38:29 AM
It is btw an warning by joolma, we cannot change it.
Title: Re: Strict Standards in backend
Post by: agps on December 19, 2013, 11:40:58 AM
It is strange because in the same server I have another one installation (same versions) and everything works fine.
Title: Re: Strict Standards in backend
Post by: balai on December 19, 2013, 12:03:51 PM
Then contact your hosting company. They will be able to disable the warnings for sure
Title: Re: Strict Standards in backend
Post by: GJC Web Design on July 11, 2014, 11:07:22 AM
I know this is old but this may help

in both the index.php in the Joomla root and administrator add at the top

error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );

Use it on all my installs