[solved] Gtranslate Pro issues page erros and wrong urls.

Popular automatic website translation tool

[solved] Gtranslate Pro issues page erros and wrong urls.

Postby pr1970 » Thu Aug 07, 2014 7:32 pm

Hi

Have just installed Gtranslate Pro but am having a couple of problems.

First I`m getting lots of errors when I tried spanish for example http://www.cambags.com/es
Warning: Creating default object from empty value in /home/cambags/public_html/gtranslate/translate.php on line 232
and then 404 errors before the page is translated.

I added the info.php to my servers gtranslate folder but no difference. Should I be adding something to turn off display erros.
I`ve tried adding various things to this and the php.ini files but nothing helps eg.
<?php
// Turn off all error reporting
error_reporting(0);
?>


Secondly,
I`m finding my urls are pointing to the incorrect translated articles.

For example
http://www.cambags.com/shoulder-bags/canon-200dg

is being turned into this on the spanish pages...

http://www.cambags.com/es/shoulder-bags/canon-200dg/es

Any ideas?

Thanks alot
pr1970
 
Posts: 18
Joined: Thu Sep 29, 2011 3:22 pm

Re: Gtranslate Pro issues page erros and wrong urls.

Postby Edvard » Thu Aug 07, 2014 9:02 pm

Hi,

It is only warning messages and you shouldn't be worried about them. In any production server you need to have display_errors off. Please consult your hosting provider to learn how you may turn them off.

I'm not sure about the URLs. Can you write step by step what I need to do to see the wrong URL you have mentioned?

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: Gtranslate Pro issues page erros and wrong urls.

Postby pr1970 » Thu Aug 07, 2014 9:22 pm

Ah it seems to be ok now. Perhaps it hadnt cached all the links.strange.
It was basically putting /es/es after my domain name and then /es at the end of each link , for spanish.
Was every link under these list pages for example http://www.cambags.com/it/shoulder-bags

I`ll ask my host about removing the warning messages.

Thanks
pr1970
 
Posts: 18
Joined: Thu Sep 29, 2011 3:22 pm

Re: Gtranslate Pro issues page erros and wrong urls.

Postby Edvard » Thu Aug 07, 2014 9:27 pm

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: Gtranslate Pro issues page erros and wrong urls.

Postby pr1970 » Thu Aug 07, 2014 9:43 pm

Hi Again

Regarding the warning messages , this is what my host support responded with. Any ideas? Thanks

------------------------

Since you are on a shared server, we can not turn these errors off at the server level.

However, if you find the specific function in php that is giving you the errors (on line 232 of translate.php), you can add a "@" in front of the function, and this should silence the error that is coming from that command. For example, if echo() was giving an error, you can silence the error like this: @echo().

If you are uncomfortable with this, it would be advised to contact your developer about making these changes.

Please let me know if you have any other questions.
pr1970
 
Posts: 18
Joined: Thu Sep 29, 2011 3:22 pm

Re: Gtranslate Pro issues page erros and wrong urls.

Postby Edvard » Thu Aug 07, 2014 9:54 pm

Hi,

There should be a way to turn of PHP display_errors parameter. Please ask them how to do that exactly. It will be helpful to know which hosting you use.

It is a security issue to have display_errors On on any production website, so your hosting should be aware of that.

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: Gtranslate Pro issues page erros and wrong urls.

Postby pr1970 » Fri Aug 08, 2014 6:14 pm

Just to update, Editing the php.ini and a change to the .htaccess file fixed the problem.

Thanks
pr1970
 
Posts: 18
Joined: Thu Sep 29, 2011 3:22 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron