Forum Archive - 404 on GTranslate Pro unresolved by "Troubleshouting"

404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 10, 2011 2:28 pm by orani
Hello, I am in this case: gtranslate/troubleshooting-gtranslate-pro-t368.html#3 But i can't find why it does not work Thanx for your help cf. : http://www.aleph-news.net/wp-content/plugins/gtranslate/
[FAQ] 404 on GTranslate Pro
Apr 11, 2011 8:45 am by orani
3. When I select a language I'm being redirected to a URL with the language code, but it gives 404 not found error. - Make sure that you have uploaded gtranslate folder to your www root folder. gtranslate forlder is in /var/www/html/wp-content/plugins it contains licence.dat - Make sure that you have .htaccess file and have placed # gtranslate config block to the next line of RewriteEngine On line in it. RewriteEngine On # gtranslate config RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA] in /var/www/html/ /var/html/wp-content/ /var/html/wp-content/plugins and /var/html/wp-content/plugins/gtranslate - Make sure that you have Apache mod_rewrite or an alternative installed on your server (check with your hosting provider). LoadModule proxy_module modules/mod_proxy.so in my /etc/httpd/conf/httpd.conf file Could you help ? The site is http://www.aleph-news.net
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 11, 2011 4:05 pm by Edvard
gtranslate folder should be uploaded into your www-root folder, in your case it is /var/www/html.
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 12, 2011 1:27 pm by orani
Hello, Modification done, i have re-install gtranslate pro ine the document root /var/www/html and installed gtranslate free in the plugin directory; Nothing looks better. An idea ? Thanx ps: where could i find some logs to help ?
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 13, 2011 8:58 am by Edvard
Can you post the contents of /var/www/html/.htaccess file?
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 13, 2011 9:38 am by orani
Sure, RewriteEngine On # gtranslate config RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA] Thanx for your help ps: here the link to phpinfo, http://www.aleph-news.net/gtranslate/info.php
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 13, 2011 11:31 am by Edvard
You don't have JSON library installed. You need to upgrade PHP to version 5.2 or install JSON. But that will not solve the 404 error. I'm not sure that it is your .htaccess please check dot prefix. Also there should be some other RewriteRules for your wordpress.
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 13, 2011 12:19 pm by orani
/etc/httpd/conf/httpd.conf was with AllowOverride None changing to All and its ok (blank page now) Thanx for your help May be add this in Troubleshouts
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 13, 2011 12:23 pm by Edvard
Good, now you need to install the missing JSON library or upgrade the PHP.
GTranslate Pro only one langage !?
Apr 13, 2011 12:42 pm by orani
Not so bad :-) I am in 4.2 now, but i have still a error, It looks working only for arab langage !? example: http://www.aleph-news.net/?p=6102 (source fr) http://www.aleph-news.net/en/?p=6102 (ko) http://www.aleph-news.net/ar/?p=6102 (ok) Thanx
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 13, 2011 12:44 pm by Edvard
You have forced it to be compiled with --disable-json.
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 14, 2011 1:24 pm by orani
Hello, This is a precompiled version. The --disable-json compilation directive is only to not embeded de librairy. json is well integrated as loadable module (cf. http://www.aleph-news.net/gtranslate/info.php) As a proof, the --without-mysql is present too. ... :-( Test the site, you gonna see some strange stuff, only menu is translated ! http://www.aleph-news.net
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 14, 2011 1:32 pm by Edvard
Not sure what you did, but now it is OK. Currently you have your API key daily limit exceeded. I already can see some parts of the page are translated into English: http://www.aleph-news.net/en/ BTW. Upgrade to v3.1415.
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 14, 2011 1:56 pm by orani
Thanx a lots for your help !
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 15, 2011 12:39 pm by orani
HEllo Edvard, The cache is not updated since 04/14: http://www.aleph-news.net/gtranslate/cache/en/?C=M;O=D Any idea ? The ages aren't translated anymore ? Thx --- here is the debug.txt generated by http://www.aleph-news.net/ to http://www.aleph-news.net/en/?p=7842---------- * About to connect() to www.aleph-news.net port 80 * Trying 88.191.139.208... * connected * Connected to www.aleph-news.net (88.191.139.208) port 80 > GET /?category_name=syrie HTTP/1.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 Host: www.aleph-news.net Accept: */* Cookie: __utma=242541650.812617264.1302111644.1302676595.1302783433.8; __utmz=242541650.1302111644.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); wp-settings-1=m0%3Do%26m9%3Do%26m1%3Do%26m2%3Do%26m4%3Do%26m5%3Do%26m8%3Do%26m7%3Do%26m6%3Do%26editor%3Dtinymce%26m10%3Do%26widgets_access%3Doff%26m3%3Do%26align%3Dleft%26imgsize%3Dmedium; wp-settings-time-1=1302894065; __utmc=242541650; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_94c51b75ac78c4e7eb34395e0fde53ee=admin%7C1302981371%7Cb4ccb82530be48fd4622a1a422f82d5b < HTTP/1.1 200 OK < Date: Fri, 15 Apr 2011 19:37:23 GMT < Server: Apache/2.2.3 (CentOS) < X-Powered-By: PHP/5.2.10 < X-Pingback: http://www.aleph-news.net/xmlrpc.php < Expires: Wed, 11 Jan 1984 05:00:00 GMT < Last-Modified: Fri, 15 Apr 2011 19:37:24 GMT < Cache-Control: no-cache, must-revalidate, max-age=0 < Pragma: no-cache < Connection: close < Transfer-Encoding: chunked < Content-Type: text/html; charset=UTF-8 * Closing connection #0 * About to connect() to www.aleph-news.net port 80 * Trying 88.191.139.208... * connected * Connected to www.aleph-news.net (88.191.139.208) port 80 > GET /?p=7842 HTTP/1.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 Host: www.aleph-news.net Accept: */* Cookie: __utma=242541650.812617264.1302111644.1302676595.1302783433.8; __utmz=242541650.1302111644.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); wp-settings-1=m0%3Do%26m9%3Do%26m1%3Do%26m2%3Do%26m4%3Do%26m5%3Do%26m8%3Do%26m7%3Do%26m6%3Do%26editor%3Dtinymce%26m10%3Do%26widgets_access%3Doff%26m3%3Do%26align%3Dleft%26imgsize%3Dmedium; wp-settings-time-1=1302894065; __utmc=242541650; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_94c51b75ac78c4e7eb34395e0fde53ee=admin%7C1302981371%7Cb4ccb82530be48fd4622a1a422f82d5b < HTTP/1.1 200 OK < Date: Fri, 15 Apr 2011 19:37:31 GMT < Server: Apache/2.2.3 (CentOS) < X-Powered-By: PHP/5.2.10 < X-Pingback: http://www.aleph-news.net/xmlrpc.php < Expires: Wed, 11 Jan 1984 05:00:00 GMT < Last-Modified: Fri, 15 Apr 2011 19:37:31 GMT < Cache-Control: no-cache, must-revalidate, max-age=0 < Pragma: no-cache < Connection: close < Transfer-Encoding: chunked < Content-Type: text/html; charset=UTF-8 * Closing connection #0 * About to connect() to www.aleph-news.net port 80 * Trying 88.191.139.208... * connected * Connected to www.aleph-news.net (88.191.139.208) port 80 > GET /?p=7842 HTTP/1.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 Host: www.aleph-news.net Accept: */* Cookie: __utma=242541650.812617264.1302111644.1302676595.1302783433.8; __utmz=242541650.1302111644.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); wp-settings-1=m0%3Do%26m9%3Do%26m1%3Do%26m2%3Do%26m4%3Do%26m5%3Do%26m8%3Do%26m7%3Do%26m6%3Do%26editor%3Dtinymce%26m10%3Do%26widgets_access%3Doff%26m3%3Do%26align%3Dleft%26imgsize%3Dmedium; wp-settings-time-1=1302894065; __utmc=242541650; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_94c51b75ac78c4e7eb34395e0fde53ee=admin%7C1302981371%7Cb4ccb82530be48fd4622a1a422f82d5b < HTTP/1.1 200 OK < Date: Fri, 15 Apr 2011 19:37:35 GMT < Server: Apache/2.2.3 (CentOS) < X-Powered-By: PHP/5.2.10 < X-Pingback: http://www.aleph-news.net/xmlrpc.php < Expires: Wed, 11 Jan 1984 05:00:00 GMT < Last-Modified: Fri, 15 Apr 2011 19:37:36 GMT < Cache-Control: no-cache, must-revalidate, max-age=0 < Pragma: no-cache < Connection: close < Transfer-Encoding: chunked < Content-Type: text/html; charset=UTF-8 * Closing connection #0 * About to connect() to www.aleph-news.net port 80 * Trying 88.191.139.208... * connected * Connected to www.aleph-news.net (88.191.139.208) port 80 > GET /?tag=otan HTTP/1.1 User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) Host: www.aleph-news.net Accept: */* Cookie: < HTTP/1.1 200 OK < Date: Fri, 15 Apr 2011 19:38:16 GMT < Server: Apache/2.2.3 (CentOS) < X-Powered-By: PHP/5.2.10 < X-Pingback: http://www.aleph-news.net/xmlrpc.php < Connection: close < Transfer-Encoding: chunked < Content-Type: text/html; charset=UTF-8 * Closing connection #0
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 15, 2011 8:16 pm by Edvard
Hi, I can see that your cache is growing. If you want you can disable some of the languages you don't need to be translated and indexed to save bandwidth. To do that you need to replace ([a-z]{2}) with (en|ru|it|fr|de|...) with the language codes you want to be translated.
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 15, 2011 10:32 pm by orani
in the rewrite rules ? like this ? RewriteRule ^(en|ar|fa|tr|zh-CN|zh-TW)/(en|ar|fa|tr|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L] RewriteRule ^(en|ar|fa|tr|zh-CN|zh-TW)/(en|ar|fa|tr|zh-CN|zh-TW)$ /$1/ [R=301,L] RewriteRule ^(en|ar|fa|tr|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteRule ^(en|ar|fa|tr|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 18, 2011 10:57 am by Edvard
Correct.
Re: 404 on GTranslate Pro unresolved by "Troubleshouting"
Apr 21, 2011 8:54 pm by orani
Oki, thanx for help ... Sometime the google service looks not so stable ... but with patience it will works fine :-)

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
Instragram and Gtranslate...!!!!Dec 19, 2018 11:18 amReplies: 1Post by: zackfernandes

Try GTranslate with a free 15 day trial