PrestaShop / PrestaShop/PrestaShop

ps_emailalerts - sometimes is missing "mails" folder in specific language

Open
#36,734 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug NMI Waiting for dev
Dominant language
PHP
Stars
9.2k
Forks
5.1k
Avg merge
2d 20h
Merged PRs (30d)
53

Description

Prerequisites
Describe the bug and add attachments

I don't know, how it happened, but if customer have more languages, sometimes there is specific language missing in folder "mails" in module "ps_emailalers".

And then, mail never arrived, because of missing template in specific language.

I don't have more informations. I don't know how to reproduce, but I was solving this problem about 5 times this year.

Everytime I solved it simple by copying english folder mails to specific language.
for example:
/modules/ps_emailalerts/mails/en/ -> /modules/ps_emailalerts/mails/sk/

I don't know, how this happened, so I am opening issue for investigating this problem or get to know for future solution.

Expected behavior

"mails" folder in module "ps_emailalerts" should have all languages or use default language if missing language at least.

Steps to reproduce

I don't know how to reproduce this problem :(

PrestaShop version(s) where the bug happened

8.1.7

PHP version(s) where the bug happened

8.1

If your bug is related to a module, specify its name and its version

ps_emailalerts - latest

Your company or customer's name goes here (if applicable).

https://www.openservis.cz/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the module path modules/ps_emailalerts/mails/, comparing the en and sk language template folders mentioned in the report. Investigate how ps_emailalerts selects or creates language-specific mail templates; reproduction is not provided. Done means missing-language templates no longer prevent delivery, either through complete folders or the default-language fallback described in the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.