Skip to main content
Magento 2Magento Errors

Magento 2 – An error occurred while processing your form. Please try again later.

By February 20, 2020No Comments

After launching a new Magento 2 website the client reporting an issue submitting the contact form. The frontend error was a red message stating; ‘An error occurred while processing your form. Please try again later.’

The /var/exception.log listed;

Email template ‘contacts_email_email_template’ is not defined.

After a bit of Googling I found a few possible solutions.

 

Magento 1 to M2 migration issue

I read that this might be a Magento 1 to M2 migration issue. A core_config_data entry with path ‘contact/email/email_templates‘, should be ‘contact/email/email_template’

I couldn’t find any matching database M1 entries.

 

Custom Contact form templates

I had customised the default contact form, so removed the altered version and retested. Unfortunately this also didn’t help.

 

contacts_email_email_template is not defined solution

I found the answer from Mage2.pro. It was a Magento admin setting.

Stores > General > Contacts > Email Options

contacts_email_email_template error

 

Make sure ‘Use system value’ is selected for Email template.

Reindex and clean cache and hopefully that will fix the contact form error.

contacts_email_email error fix

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.