Forum Archive - Warning: file_put_contents(cache/js

Warning: file_put_contents(cache/js
Feb 6, 2013 9:16 am by sdmonad
Hi I have a problem with cache error with a Drupal 7 site. I got this error what is the problem? Warning: file_put_contents(cache/js/ca7480c8382905e83c00fb8f086d74): failed to open stream: No such file or directory in /var/sites/httpd/htdocs/gtranslate/translate.php on line 305 Warning: file_put_contents(cache/js Rgds
Re: Warning: file_put_contents(cache/js
Feb 6, 2013 9:23 am by sdmonad
Another issue is when you install the Drupal GT translate module it take over the upper part of your menu area so you cant access the admin drop down menus. This site have an extra dhtml menu block installed for top drop down menus, maybe thats the reason? But how can you solve this ? rgds
Re: Warning: file_put_contents(cache/js
Feb 6, 2013 10:22 am by Edvard
Hi, Please use the following rewrite rules instead in your .htaccess: 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 RewriteCond %{REQUEST_URI} !^/js RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteCond %{REQUEST_URI} !^/js RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA] Not sure about the top menu. Can you send a link, so I can check?
Re: Warning: file_put_contents(cache/js
Feb 6, 2013 5:41 pm by sdmonad
Hi I saw and post here about the cache issue so I did this to solve the cache problem and its seems to work. # gtranslate config RewriteRule ^([a-z]{af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|th|tr|uk|ur|vi|cy|yi|zh-CN|zh-TW)/(af|sq|ar|hy|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yi|zh-CN|zh-TW}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA] RewriteRule ^([a-z]{af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|th|tr|uk|ur|vi|cy|yi|zh-CN|zh-TW)/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|th|tr|uk|ur|vi|cy|yi|zh-CN|zh-TW}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA] And start all over again with installation. Its a Drupal 7. 14 site and I have to install the free GT modul by ftp. Now the cache issues disappear but in back end there is only two settings that can be done by GT in back end. Sending you url and pic on how it looks
Re: Warning: file_put_contents(cache/js
Feb 6, 2013 6:02 pm by Edvard
Please download and install the latest version from our website. Please provide more information how I can check the issue you have. I cannot find any image or URL.
Re: Warning: file_put_contents(cache/js
Feb 6, 2013 6:04 pm by Edvard
I got the email after I posted this. I cannot see that you have installed the GTranslate module. The screenshot you sent has nothing to do with GTranslate. If you are having problems installing it you can send us your backend access and FTP access using our contact us form on our home page and our agent will install it for you. Thanks!

SIMILAR TOPICS

2 questions: w3 total cache and paymentAug 19, 2018 10:38 amReplies: 2Post by: Wind777
GTranslate conflict with W3 total cache or vica versaOct 30, 2016 11:58 amReplies: 3Post by: Rick Matters
htaccess (301 redirects) CacheSep 19, 2016 9:36 amReplies: 3Post by: belgor
Why gtranslate is not putting cache files back togetherMar 7, 2016 7:37 pmReplies: 6Post by: innerself
gtranslate cacheMar 7, 2016 8:46 pmReplies: 3Post by: mitsugij

Try GTranslate with a free 15 day trial