OliverEggertsen Posted August 6, 2013 Share Posted August 6, 2013 Hi. I am having trouble translating and modifying the e-mail templates in the backoffice (translations ----> e-mail translation) When i have made my changes and try to save i get some crazy error repeating itself all down the page of my backoffice and the changes in the mail template is not saved. The error i get says this: Warning : file_put_contents() [ function.file-put-contents ]: Unable to access /var/www/olivereggertsen.dk/public_html/themes/test/mails/da/account.html in /var/www/olivereggertsen.dk/public_html/controllers/admin/AdminTranslationsController.php on line 1442 Warning : file_put_contents(/var/www/olivereggertsen.dk/public_html/themes/test/mails/da/account.html) [ function.file-put-contents ]: failed to open stream: No such file or directory in /var/www/olivereggertsen.dk/public_html/controllers/admin/AdminTranslationsController.php on line 1442 And it keeps repeating itself all down the page. How can i fix it so i can modify my e-mail templates in back-office? :-) Thanks in advance. Link to comment Share on other sites More sharing options...
OliverEggertsen Posted August 7, 2013 Author Share Posted August 7, 2013 anyone? Link to comment Share on other sites More sharing options...
NemoPS Posted August 7, 2013 Share Posted August 7, 2013 Hi, Can you manually check that the mentioned file is actually located to the specified position? Also, does that folder have at least a 755 permission? Link to comment Share on other sites More sharing options...
OliverEggertsen Posted August 7, 2013 Author Share Posted August 7, 2013 (edited) Hi, Can you manually check that the mentioned file is actually located to the specified position? Also, does that folder have at least a 755 permission? Apparently i don't have a folder named mails in the test folder :-S But the /var/www/olivereggertsen.dk/public_html/controllers/admin/AdminTranslationsController.php is there. Line 1442 in that file says: file_put_contents($path.$mail_name.'.'.$type_content, $content); Edited August 7, 2013 by OliverEggertsen (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted August 7, 2013 Share Posted August 7, 2013 You need that folder, it's mandatory Link to comment Share on other sites More sharing options...
OliverEggertsen Posted August 7, 2013 Author Share Posted August 7, 2013 I figured it out. I copied all the files from the roots mail folder and put it into the theme-->mytheme folder. Link to comment Share on other sites More sharing options...
Recommended Posts