Author Topic: E-Mail subject required!  (Read 844 times)

Offline HADY

  • Full Member
  • ***
  • Posts: 203
  • Karma: +17/-4
    • View Profile
E-Mail subject required!
« on: June 06, 2020, 03:57:59 AM »
Hello!


I searched forums but couldn't find anything about this

After Upgrading to latest Version 1.2.16 we are getting next error:


2020-06-06 10:51:32 - Email Template with text id "storefront_welcome_email_approved" and language_id = 9 not found
2020-06-06 10:51:32 - Error: E-Mail subject required!


What is causing this please ?

Thanks
-----------------------------
Regards
HADY

Offline maxter

  • Full Member
  • ***
  • Posts: 180
  • Karma: +60/-0
    • View Profile
Re: E-Mail subject required!
« Reply #1 on: June 06, 2020, 11:47:53 AM »
Email Template is a new feature in 1.2.16

My guess, there is no email template for your language. Default English language is 1 and you have 9.

Copy email templates to your language and translate.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4675
  • Karma: +242/-2
    • View Profile
Re: E-Mail subject required!
« Reply #2 on: June 08, 2020, 03:54:25 AM »
The fastest way to copy email templates from the English is to use Load missing data tool
https://abantecart.atlassian.net/wiki/spaces/AD/pages/15302710/Edit+Language#EditLanguage-LoadmissingData

Please backup before the run
« Last Edit: June 08, 2020, 03:55:58 AM by Basara »

Offline HADY

  • Full Member
  • ***
  • Posts: 203
  • Karma: +17/-4
    • View Profile
Re: E-Mail subject required!
« Reply #3 on: June 09, 2020, 04:28:54 AM »
Email Template is a new feature in 1.2.16

My guess, there is no email template for your language. Default English language is 1 and you have 9.

Copy email templates to your language and translate.


Thanks for your reply.
-----------------------------
Regards
HADY

Offline HADY

  • Full Member
  • ***
  • Posts: 203
  • Karma: +17/-4
    • View Profile
Re: E-Mail subject required!
« Reply #4 on: June 09, 2020, 04:36:35 AM »
The fastest way to copy email templates from the English is to use Load missing data tool
https://abantecart.atlassian.net/wiki/spaces/AD/pages/15302710/Edit+Language#EditLanguage-LoadmissingData

Please backup before the run


Thanks for reply, I think this will effect on already modified localization languages files and take act. I don't recommend this way. The best way is to translate them one by one. but I still have one more question, Shall I translate the contain of Html Body and Text Body together or translating text body only or html body only?? I am Little bit confused what is the correct operation I have to do?


Thanks
-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4675
  • Karma: +242/-2
    • View Profile
Re: E-Mail subject required!
« Reply #5 on: June 09, 2020, 04:39:47 AM »
Both require translations

Offline HADY

  • Full Member
  • ***
  • Posts: 203
  • Karma: +17/-4
    • View Profile
Re: E-Mail subject required!
« Reply #6 on: June 09, 2020, 04:49:21 AM »
Both require translations

Ok, Thanks
-----------------------------
Regards
HADY

Offline hani

  • Full Member
  • ***
  • Posts: 101
  • Karma: +11/-1
    • View Profile
Re: E-Mail subject required!
« Reply #7 on: July 10, 2020, 12:14:19 AM »
Hello

I have upgraded from 1.2.15 to 1.2.16 and i am getting a similar error as below

2020-07-09 14:18:24 - Email Template with text id "storefront_new_customer_admin_notify" and language_id = 1 not found
2020-07-09 14:18:24 - Error: E-Mail subject required!
2020-07-09 14:18:24 - Email Template with text id "storefront_welcome_email_activated" and language_id = 1 not found
2020-07-09 14:18:24 - Error: E-Mail subject required!


I have checked the email templates in the Design >> Email templates they are available

Can anyone tell what might be wrong??

Thanks in advance for any advise

Offline hani

  • Full Member
  • ***
  • Posts: 101
  • Karma: +11/-1
    • View Profile
Re: E-Mail subject required!
« Reply #8 on: July 10, 2020, 12:30:19 AM »
Hello again

I think i found the problem, i have 2 stores, a retail store and email templates are available and another store for wholesale and here in the second store EMAIL TEMPLATES are not available

What is the easiest way to copy the templates from one store to another?? do i have to do them manually one by one??

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1844
  • Karma: +277/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: E-Mail subject required!
« Reply #9 on: July 10, 2020, 04:29:31 AM »
To solve just open phpMyAdmin
and run this query.

NOTE: You need to replace table prefix ac_ with yours and check what ID of your second store. As you see below i set "1 as store_id". If your second store have another - your should to replace with yours too.

Code: [Select]
SET SQL_MODE='';
INSERT INTO `ac_email_templates`
(`status`, `text_id`, `language_id`, `headers`, `subject`, `html_body`, `text_body`, `allowed_placeholders`, `date_deleted`, `store_id`)
SELECT `status`, `text_id`, `language_id`, `headers`, `subject`, `html_body`, `text_body`, `allowed_placeholders`, `date_deleted`, 1 as `store_id`
FROM `ac_email_templates`
WHERE `store_id` = 0;
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline hani

  • Full Member
  • ***
  • Posts: 101
  • Karma: +11/-1
    • View Profile
Re: E-Mail subject required!
« Reply #10 on: July 10, 2020, 11:58:57 AM »
Thanks for your reply

 

Powered by SMFPacks Social Login Mod