code/errors showing in header

Popular automatic website translation tool

code/errors showing in header

Postby rowanscribbles » Mon Aug 11, 2014 6:04 pm

Hi- just installed looks great is translating however the following is showing up on every page, have disabled and brought back be grateful for assistance,

Strict Standards: Non-static method modGTranslateHelper::getParams() should not be called statically in /home/lsdnco/public_html/modules/mod_gtranslate/mod_gtranslate.php on line 13

Strict Standards: Only variables should be assigned by reference in /home/lsdnco/public_html/modules/mod_gtranslate/tmpl/default.php on line 130

Strict Standards: Only variables should be assigned by reference in /home/lsdnco/public_html/modules/mod_gtranslate/tmpl/default.php on line 209
rowanscribbles
 
Posts: 1
Joined: Mon Aug 11, 2014 5:57 pm

Re: code/errors showing in header

Postby Edvard » Mon Aug 11, 2014 10:01 pm

Hi,

Please disable strict standard warnings. I want to note that on every production website error reporting should be turned off for security purposes.

Thanks!
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: code/errors showing in header

Postby carsten888 » Mon Nov 24, 2014 2:44 pm

Or you can just fix the bugs ;)

modules\mod_gtranslate\mod_gtranslate.php on line 13
Code: Select all
function getParams(&$params) {

change to
Code: Select all
static function getParams(&$params) {


modules\mod_gtranslate\tmpl\default.php on line 130
Code: Select all
$document =& JFactory::getDocument();

change to
Code: Select all
$document = JFactory::getDocument();

and line 209
Code: Select all
$session =& JFactory::getSession();

change to
Code: Select all
$session = JFactory::getSession();
carsten888
 
Posts: 1
Joined: Mon Nov 24, 2014 2:36 pm

Re: code/errors showing in header

Postby Yana » Tue Nov 25, 2014 5:18 pm

Hi,
Thank you for your post.
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: 4133
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