Forum Archive - php 5.4 error

php 5.4 error
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
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
hi yana, will this be safe just to hide the error?
Re: php 5.4 error
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 numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
Error message and URL problemsFeb 6, 2019 11:16 amReplies: 1Post by: Kidbooo
GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
Nginx 502 ErrorJan 11, 2019 2:15 pmReplies: 1Post by: mightyfineprint
Error message on click on the widgetJan 6, 2019 9:52 pmReplies: 1Post by: jmric68

Try GTranslate with a free 15 day trial