Gtranslate Pro - Error log

Popular automatic website translation tool

Gtranslate Pro - Error log

Postby xbonize » Mon Oct 21, 2013 8:48 am

Hi,

I've an error log in /home/username/public_html/gtranslate like below:

PHP Warning: file_put_contents(cache/jk/8aa8b48bb7d31274e831b850d623dedb) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /home/manage/public_html/gtranslate/translate.php on line 305
xbonize
 
Posts: 35
Joined: Tue Mar 13, 2012 7:32 pm

Re: Gtranslate Pro - Error log

Postby Yana » Mon Oct 21, 2013 10:23 am

Hi,

Jk is not the gtranslate language code. If you have a "jk" directory, please try to rename it.
If you installed the gtranslate general version you can modify redirect rules and replace [a-z]{2} with the language codes which you want to use.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Gtranslate Pro - Error log

Postby xbonize » Wed Jan 28, 2015 6:25 am

Hi,

I'm still facing this problem and I don't have any jk directory. How to prevent this from happening again?

PS: I'm using gtranslate general version
xbonize
 
Posts: 35
Joined: Tue Mar 13, 2012 7:32 pm

Re: Gtranslate Pro - Error log

Postby Yana » Wed Jan 28, 2015 5:35 pm

HI,
Please try to replace gtranslate .htaccess rules with the following rules.
Code: Select all
# 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_FILENAME} !-f
RewriteRule ^(en|af|ar|az|be|bg|ca|cs|cy|da|de|el|es|et|eu|fa|fi|fr|ga|gl|hi|hr|ht|hu|hy|id|is|it|iw|ja|ka|ko|lt|lv|mk|ms|mt|nl|no|pl|pt|ro|ru|sk|sl|sq|sr|sv|sw|th|tl|tr|uk|ur|vi|yi|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(en|af|ar|az|be|bg|ca|cs|cy|da|de|el|es|et|eu|fa|fi|fr|ga|gl|hi|hr|ht|hu|hy|id|is|it|iw|ja|ka|ko|lt|lv|mk|ms|mt|nl|no|pl|pt|ro|ru|sk|sl|sq|sr|sv|sw|th|tl|tr|uk|ur|vi|yi|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: Gtranslate Pro - Error log

Postby xbonize » Thu Jan 29, 2015 5:26 am

Thanks Yana. Appreciate your help. :)
xbonize
 
Posts: 35
Joined: Tue Mar 13, 2012 7:32 pm

Re: Gtranslate Pro - Error log

Postby Yana » Thu Jan 29, 2015 1:47 pm

You're welcome!
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux