LovePrestashop Posted July 29, 2010 Share Posted July 29, 2010 When I try to change a translation follow by this way:BO: tools ->Translation -> Front Office Translation -> enType my translation in the text box, then click "update translation" button, then I got an error message "Cannot write language file". I know this is because the file needs write permissions but I don't know which file is it. I checked the "translation" folder and I can see all of files on en folder have write permission. It may be a easy question for you, but please help me... Thanks so much!I have checked the translation folder has write permission. and all files under translation/en/ are also writable. Link to comment Share on other sites More sharing options...
LovePrestashop Posted July 29, 2010 Author Share Posted July 29, 2010 Could someone help me with this please? I am not sure if the translation is saved into a xml file or database. If it is saved into a xml file, it must a file permission issue, otherwise it must be a database issue. Please help! Thanks Link to comment Share on other sites More sharing options...
SpyrosT Posted July 29, 2010 Share Posted July 29, 2010 If you don't have an error-log file to see the error then you can openconfig.inc.php file inside the config folder and thenchange the @ini_set('display_errors', 'false'); to @ini_set('display_errors', 'true'); You will see the error at the top of page.Remember to change it back after the error is fixed. Link to comment Share on other sites More sharing options...
rocky Posted July 29, 2010 Share Posted July 29, 2010 The Front Office translations are written to PHP files in translations/. Make sure that the translations directory and translations/en directories (and other language directories) are chmod 755 and that the files are chmod 644. Link to comment Share on other sites More sharing options...
LovePrestashop Posted July 30, 2010 Author Share Posted July 30, 2010 Thanks rocky. all files under translation/en are also chmod 644. Please see the image I uploaded. Do you have any idea why this is happening? Thanks you so much! Link to comment Share on other sites More sharing options...
LovePrestashop Posted July 30, 2010 Author Share Posted July 30, 2010 I found it myself. The file is [your theme]/lang/en.php. Give it the write permission and then it works. Link to comment Share on other sites More sharing options...
Don Camillo Posted March 22, 2011 Share Posted March 22, 2011 I had the same problem. So normally your directories (mentioned above) should be 755, and the files 655, but when you want to change something you should change it to 777, and after changing you should set it back to 755, and 644 again. Link to comment Share on other sites More sharing options...
screege Posted October 16, 2011 Share Posted October 16, 2011 Can anyone please help me? I get this when trying to update module translations: Forbidden You don't have permission to access /adminxxxxx/index.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I have tried putting 777 to all files and folders under /translations/mx and also under themes/prestashop/lang/mx.php Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now