php 5.4 error
Mar 28, 2014 9:10 am by anders
Mar 28, 2014 9:10 am by anders
Hi guys,
my server upgrade my phpversion from 5.3 to 5.4 and i get this errors any ideas how to fix?
[Fri Mar 28 08:55:19 2014] [error] [client 194.9.94.253] PHP Strict Standards: Non-static method
modGTranslateHelper::getParams() should not be called statically in /www/webvol6/qi/k1u84exyc58ygjj/testsida.schawewwew.com/public_html/modules/mod_gtranslate/mod_gtranslate.php on line 13
[Fri Mar 28 08:55:19 2014] [error] [client 194.9.94.253] PHP Strict Standards: Only variables should be assigned by reference in /www/webvol6/qi/k1u84exyc58ygjj/testsida.schawewwew.com/public_html/modules/mod_gtranslate/tmpl/default.php on line 115
[Fri Mar 28 08:55:19 2014] [error] [client 194.9.94.253] PHP Strict Standards: Only variables should be assigned by reference in /www/webvol6/qi/k1u84exyc58ygjj/testsida.schawewwew.com/public_html/modules/mod_gtranslate/tmpl/default.php on line 130
[Fri Mar 28 08:55:19 2014] [error] [client 194.9.94.253] PHP Strict Standards: Only variables should be assigned by reference in /www/webvol6/qi/k1u84exyc58ygjj/testsida.schawewwew.com/public_html/modules/mod_gtranslate/tmpl/default.php on line 142
Re: php 5.4 error
Mar 28, 2014 1:57 pm by Yana
Mar 28, 2014 1:57 pm by Yana
Hi,
Please try to turn off strict warnings. Add the following in the helper.php and default.php files. They are in the /modules/mod_gtranslate directory.
error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);
Re: php 5.4 error
Mar 28, 2014 2:38 pm by anders
Mar 28, 2014 2:38 pm by anders
hi yana,
will this be safe just to hide the error?
Re: php 5.4 error
Mar 28, 2014 3:01 pm by Yana
Mar 28, 2014 3:01 pm by Yana
Dear Anders,
It is caused by new PHP 5.4 strict standards.We will fix the issue in the next version. You shouldn't be worried about that. And in production all the warning/error messages should be off for security purposes in any case.
SIMILAR TOPICS
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
Error message and URL problems | Feb 6, 2019 11:16 am | Replies: 1 | Post by: Kidbooo |
GT doesn't work...error 404 page | Jan 28, 2019 5:36 pm | Replies: 1 | Post by: vincenzodinuzzo |
Nginx 502 Error | Jan 11, 2019 2:15 pm | Replies: 1 | Post by: mightyfineprint |
Error message on click on the widget | Jan 6, 2019 9:52 pm | Replies: 1 | Post by: jmric68 |