php 5.4 error

Popular automatic website translation tool

php 5.4 error

Postby anders » Fri Mar 28, 2014 1:10 pm

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
anders
 
Posts: 5
Joined: Sat Jan 07, 2012 5:06 pm

Re: php 5.4 error

Postby Yana » Fri Mar 28, 2014 5:57 pm

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);
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: php 5.4 error

Postby anders » Fri Mar 28, 2014 6:38 pm

hi yana,

will this be safe just to hide the error?
anders
 
Posts: 5
Joined: Sat Jan 07, 2012 5:06 pm

Re: php 5.4 error

Postby Yana » Fri Mar 28, 2014 7:01 pm

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.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux