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

[solved] Gtranslate Pro issues page erros and wrong urls.
Aug 7, 2014 3:32 pm by pr1970
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
Re: Gtranslate Pro issues page erros and wrong urls.
Aug 7, 2014 5:02 pm by Edvard
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!
Re: Gtranslate Pro issues page erros and wrong urls.
Aug 7, 2014 5:22 pm by pr1970
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
Re: Gtranslate Pro issues page erros and wrong urls.
Aug 7, 2014 5:27 pm by Edvard
Thanks!
Re: Gtranslate Pro issues page erros and wrong urls.
Aug 7, 2014 5:43 pm by pr1970
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.
Re: Gtranslate Pro issues page erros and wrong urls.
Aug 7, 2014 5:54 pm by Edvard
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!
Re: Gtranslate Pro issues page erros and wrong urls.
Aug 8, 2014 2:14 pm by pr1970
Just to update, Editing the php.ini and a change to the .htaccess file fixed the problem. Thanks

SIMILAR TOPICS

Gtranslate MultisiteFeb 12, 2019 7:27 amReplies: 1Post by: infact_dat
Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
Add-on gtranslate no longer worksFeb 2, 2019 6:01 amReplies: 1Post by: DarylDixon
GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo

Try GTranslate with a free 15 day trial