Jump to content

once saved email templates are moved to the wrong directory


godlo

Recommended Posts

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

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 by godlo (see edit history)
Link to comment
Share on other sites

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

  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...