[Solved] still have problem with Gtranslate PRO = Blank page

Popular automatic website translation tool

[Solved] still have problem with Gtranslate PRO = Blank page

Postby ollee » Tue Aug 02, 2011 3:12 pm

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/
ollee
 
Posts: 8
Joined: Tue Aug 02, 2011 1:47 pm

Re: still have problem with Gtranslate PRO = Blank page

Postby Edvard » Wed Aug 03, 2011 4:26 pm

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]
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: still have problem with Gtranslate PRO = Blank page

Postby ollee » Thu Aug 04, 2011 1:16 am

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
ollee
 
Posts: 8
Joined: Tue Aug 02, 2011 1:47 pm

Re: still have problem with Gtranslate PRO = Blank page

Postby Edvard » Thu Aug 04, 2011 2:10 pm

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.
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: still have problem with Gtranslate PRO = Blank page

Postby ollee » Mon Aug 08, 2011 12:18 pm

Problem is resolved.... thank you!
ollee
 
Posts: 8
Joined: Tue Aug 02, 2011 1:47 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux