質問

When I installed a new module and did the setup:upgrade I received this message:

Duplicate Of Template Name on Magento 2

役に立ちましたか?

解決 2

Run:

bin/magento setup:upgrade

Probably the issue is on database, so open the table setup_module and complete the module that doesn't have data_version completed.

Duplicate Of Template Name on Magento 2

他のヒント

Duplicate of Template name comes from the module-email So setup:upgrade tries to add e-mail templates that already exist. Remove any non altered templates from the database.

hey i had the same problem , Remko de Keijzer is right here , the problem is any module is trying to add email template that already exist , to solve this

  1. open your database
  2. RUN SELECT * FROM email_template
  3. Here in the template_code column and orig_template_code you will find the duplicate template id . You just have to remove that row from the table.
  4. To find which one is duplicate go to Setup/InstallData.php file of the problematic module , like in the above example error comes immediately below Amasty_Rma so it is problematic.

Hope this saves your time

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top