godlo Posted September 7, 2017 Share Posted September 7, 2017 Prestashop 1.6.1.16 on NGINX with PHP-FPM + MariaDB I'm using a custom template. The template is located in: /home/domain/themes/mytheme/ Mail templates are located in /home/domain/themes/mytheme/mails/ I changed the template name from "mytheme" to "mytheme new name" from the page: http://domain.com/adminxxxxx/index.php?controller=AdminThemes&updatetheme&id_theme=3 Now if I translate emails templates and I click on save the directory: /home/domain/themes/mytheme/mails/en/ is moved to the new directory: /home/domain/themes/mytheme new name/mails/en/ In this way, the system can't find translations files anymore as the theme is still in the original directory: /home/domain/themes/mytheme/ I think that the system, when the user clicks on save, looks for the name of the template instead of the selected directory. Link to comment Share on other sites More sharing options...
Scully Posted September 9, 2017 Share Posted September 9, 2017 If you really renamed it like this "mytheme new name" => bad naming. Blank spaces in file or directory names can cause many problems. Link to comment Share on other sites More sharing options...
godlo Posted September 14, 2017 Author Share Posted September 14, 2017 (edited) If you really renamed it like this "mytheme new name" => bad naming. Blank spaces in file or directory names can cause many problems. theme name had blank spaces but the configured directory is not. I think that email translations during saving are using theme's name variable instead of directory's. Edited September 14, 2017 by godlo (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted September 14, 2017 Share Posted September 14, 2017 I am not sure if your problem is solved now. If so, add 'SOLVED' to the topic title. I had never such problems but I never use blank spaces, not for directories and not for theme names. It's just to risky because blank spaces have their own meaning for file related commands such as read, write or copy. Link to comment Share on other sites More sharing options...
MathiasReker Posted June 18, 2018 Share Posted June 18, 2018 it is more safe to use a email template from email template mannager module. Eg. https://addons.prestashop.com/en/prestashop-email-templates/39442-email-template-minimalistic-modern.html 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