Free Version Broken in Joomla 3.0.3

Popular automatic website translation tool

Free Version Broken in Joomla 3.0.3

Postby globus999 » Wed Apr 24, 2013 9:42 pm

If you install and run the free version in Joomla 3.0.3 out of the box, the free module gives the following errors:

Strict Standards: Non-static method modGTranslateHelper::getParams() should not be called statically in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\mod_gtranslate.php on line 13

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 115

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 130

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 209

As far as I understand it, Strict Standards enforcement is new in 3.X, which means that his version of the Plugin IS NOT!!! 3.X compatible.
globus999
 
Posts: 2
Joined: Wed Apr 24, 2013 9:39 pm

Re: Free Version Broken in Joomla 3.0.3

Postby Yana » Thu Apr 25, 2013 7:14 pm

Hi,
Please make sure that you downloaded the GTranslate free module for Joomla 3 (mod_gtranslate3.0.x.32.zip).
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: Free Version Broken in Joomla 3.0.3

Postby szavozd » Thu Jul 25, 2013 6:08 am

Hi, I have exactly the same problem and the upload package is the correct one. Can anybody help me please?

Thanks so much.
szavozd
 
Posts: 1
Joined: Thu Jul 25, 2013 6:04 am

Re: Free Version Broken in Joomla 3.0.3

Postby Yana » Fri Jul 26, 2013 12:17 am

Hi,
Please try to download the latest version and install it. Here is the link
http://joomla-gtranslate.googlecode.com ... 0.x.33.zip
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: Free Version Broken in Joomla 3.0.3

Postby sam051 » Fri Jul 26, 2013 12:37 pm

I think all above Joomla versions are really best for my Joomla website. Joomla is the perfect CMS so Company CSS Chopper is converting your simple PSD layout into valid Joomla templates/themes.
sam051
 
Posts: 1
Joined: Fri Jul 26, 2013 12:01 pm
Location: A-2 sec-63 noida India

Re: Free Version Broken in Joomla 3.0.3

Postby visiedo » Sun Jul 28, 2013 4:35 am

Hi
I just instaled mod_gtranslate3.0.x.33 in Joomla 3.1.4 and Iget de same:

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

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

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

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

Is there a solution?

Thanks
visiedo
 
Posts: 1
Joined: Sun Jul 28, 2013 4:20 am

Re: Free Version Broken in Joomla 3.0.3

Postby Yana » Mon Jul 29, 2013 1:07 am

Hi,
Can you please check your PHP version? If you are using the latest version please try to turn off strict warnings.
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: Free Version Broken in Joomla 3.0.3

Postby gneils » Thu Dec 12, 2013 11:00 am

This made the errors go away:

C:\xampp\htdocs\J303b1\modules\mod_gtranslate\mod_gtranslate.php on line 13
Actually modify the helper.php file as follows (add the word static):
Old: function getParams(&$params) {
New: static function getParams(&$params) {


Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 115
On line 115 remove the & as follows:
Old $document =& JFactory::getDocument();
New: $document =JFactory::getDocument();

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 130
Remove the ampersand.
Old: $document =& JFactory::getDocument();
New: $document =JFactory::getDocument();


Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 209
Remove the ampersand:
Old: $session =& JFactory::getSession();
New: $session =JFactory::getSession();

It looks like the module still works. I don't know PHP that well, but I think this update will work fine in PHP 5.4+
gneils
 
Posts: 1
Joined: Thu Dec 12, 2013 10:53 am

Re: Free Version Broken in Joomla 3.0.3

Postby Yana » Thu Dec 12, 2013 12:43 pm

Hi,

Thank you. Also you can try to 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: Free Version Broken in Joomla 3.0.3

Postby jhebbel » Sun Mar 15, 2015 4:14 am

gneils wrote:This made the errors go away:

C:\xampp\htdocs\J303b1\modules\mod_gtranslate\mod_gtranslate.php on line 13
Actually modify the helper.php file as follows (add the word static):
Old: function getParams(&$params) {
New: static function getParams(&$params) {


Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 115
On line 115 remove the & as follows:
Old $document =& JFactory::getDocument();
New: $document =JFactory::getDocument();

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 130
Remove the ampersand.
Old: $document =& JFactory::getDocument();
New: $document =JFactory::getDocument();


Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\J303b1\modules\mod_gtranslate\tmpl\default.php on line 209
Remove the ampersand:
Old: $session =& JFactory::getSession();
New: $session =JFactory::getSession();

It looks like the module still works. I don't know PHP that well, but I think this update will work fine in PHP 5.4+


Thank you for actually taking the time to fix the errors and report back, more than I can say for the lazy coders here whos solution is to turn off strict error reporting and not bother to fix their errors....

Should add that you missed one at line 142 though
Code: Select all
    $session =& JFactory::getSession();

to
Code: Select all
    $session = JFactory::getSession();
jhebbel
 
Posts: 1
Joined: Sun Mar 15, 2015 4:11 am

Re: Free Version Broken in Joomla 3.0.3

Postby Yana » Sun Mar 15, 2015 10:51 pm

Thank you!
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