2

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

Duplicate Of Template Name on Magento 2

3

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

3

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.

  • This is a correct answer. Setup version is just a consequence of this. – iva Jun 12 at 14:37
  • For me it was Temando_Shipping, it was trying to add Emails here so I was able to track down exact emails that I have to remove \Temando\Shipping\Setup\SetupData::addPickupOrderEmailTemplate \Temando\Shipping\Setup\SetupData::addPickupOrderGuestEmailTemplate – Macas Jul 4 at 9:35
  • same Temado problem for me /vendor/temando/module-shipping-m2/Setup/UpgradeData.php just comment the 2 addPickup calls as @Macas said – open-ecommerce.org Aug 5 at 10:56
  • @open-ecommerce.org you can either remove one those methods or remove emails from database. Ofc if you chose to remove methos - after you finish your setup upgrade, do not forget to return them back. – Macas Aug 6 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.