[Solved] still have problem with Gtranslate PRO = Blank page
Aug 2, 2011 11:12 am by ollee
Aug 2, 2011 11:12 am by ollee
I follow instruction for "blank page" problem....checked cURL, ionCube, JSON - i have it.
I turn on DEBUG mode but i don't see debug.txt file.
In my ".htaccess" file was only:
# BEGIN WordPress
# END WordPress
without "RewriteEngine On"
so I removed these lines and created this:
# 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]
P.S.: my wordpress site - http://forex-shop.com/
Re: still have problem with Gtranslate PRO = Blank page
Aug 3, 2011 12:26 pm by Edvard
Aug 3, 2011 12:26 pm by Edvard
When I go to http://forex-shop.com/ru/ it says "not found".
Your .htaccess should look like this if it was blank:
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]
Re: still have problem with Gtranslate PRO = Blank page
Aug 3, 2011 9:16 pm by ollee
Aug 3, 2011 9:16 pm by ollee
OK. I did it. - added RewriteEngine On in .htaccess file
and now I have big problem:
I can NOT administration my site. When I go to http://forex-shop.com/wp/wp-admin/index.php I see error - Not Found The requested URL /wp-admin/index.php was not found on this server.
Maybe it happen because my wordpress site not in parent directory ( in "wp" folder)
-------------
Also, Russian translate is invalid coding - for example:
Загрузка программного обеспечения для торговли ...
However, when I change coding to UTF-8. it's OK. I can see russian words
------
in debug.txt i see:
"........
< HTTP/1.1 400 Bad Request
< Content-Type: application/json; charset=UTF-8
< Date: Wed, 03 Aug 2011 21:18:10 GMT
< Expires: Wed, 03 Aug 2011 21:18:10 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
* Connection #0 to host www.googleapis.com left intact
* Closing connection #0
Request: key=AIzaxxxxxxxxxxxxxxZZL9Uw0Dc&q=404+Not+Found&userip=2a03:6f00:1::5c35:707c&source=en&target=wp
Response: {
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid Value"
}
],
"code": 400,
"message": "Invalid Value"
}
}
"
edo888, please, help me resolve these problems
Re: still have problem with Gtranslate PRO = Blank page
Aug 4, 2011 10:10 am by Edvard
Aug 4, 2011 10:10 am by Edvard
You need to use this rewrite rules instead, since you have a 2 letter directory which is being considered as a language code:
# 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]
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
You need to consult with your hosting provider and ask how to force the server to respond with UTF-8 encoding by default and it will be OK.
Re: still have problem with Gtranslate PRO = Blank page
Aug 8, 2011 8:18 am by ollee
Aug 8, 2011 8:18 am by ollee
Problem is resolved.... thank you!
SIMILAR TOPICS
Gtranslate Multisite | Feb 12, 2019 7:27 am | Replies: 1 | Post by: infact_dat |
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
Add-on gtranslate no longer works | Feb 2, 2019 6:01 am | Replies: 1 | Post by: DarylDixon |
GT doesn't work...error 404 page | Jan 28, 2019 5:36 pm | Replies: 1 | Post by: vincenzodinuzzo |