ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
922 stars 217 forks source link

Contact form Not Sending Emails #3680

Open MojoJojo opened 5 years ago

MojoJojo commented 5 years ago

Hi, I am busy setting up a new website that uses a theme that internally uses Unyson designer and extensions. I was able to setup a contact form with the required fields quite easily but I am not receiving any emails. The form submits fine without any error, but I don't receive any emails. What I have tried so far:

  1. I'm using the wp-mail option and when I use "Test Connection" to verify email capabilities on SendGrid, I receive the test email without any problems.
  2. I've checked error logs for PHP and Wordpress but there are no errors reported.
  3. Tried creating different forms with different fields, but nothing works.

Screenshots: screenshot 2018-12-28 at 22 24 00 screenshot 2018-12-28 at 22 21 13

How do I go about debugging the issue?

Your help will be greatly appreciated.

MojoJojo commented 5 years ago

Another observation - the form is being submitted using a "GET" method..when I submit the form the URL changes to something like this:

https://www.dukstra.com/contacts?fwf=fw_form&_nonce_13634c0b729763666190afcbd0e933d8=f6f9fe5c3a&_wp_http_referer=%2Fcontacts%2F%3Ffwf%3Dfw_form%26_nonce_d41fb9b401c936a1fa78037dab863bb4%3Df6f9fe5c3a%26_wp_http_referer (trimmed for brevity). Not sure if this is the expected behavior?

yura-x commented 5 years ago

Hello! Form element no longer passes KSES: https://make.wordpress.org/core/2018/12/13/backwards-compatibility-breaks-in-5-0-1/

So if you have template overriding here: /framework-customizations/extensions/forms/extensions/contact-forms/views/form.php and it uses wp_kses function - it can break your form element markup now.

You can delete wp_kses function or remove form.php file and this should fix your problem.

Best regards!

DonWilde commented 5 years ago

I am having this exact same issue and I am not sure how to implement your fix @yura-x . Any chance you could explain in a little more detail of where to go to fix this problem?

tekkenm2000 commented 5 years ago

/public_html/wp-content/themes/mytheme/framework-customizations/extensions/forms/extensions/contact-forms/views/form.php <-- removing form.php results in webpage not loading. removing wp_kses results in form not loading.. <?php echo wp_kses($form_html, $form_tags); ?> Now What ?

yura-x commented 5 years ago

@tekkenm2000 Can you provide a link to your page or at least post your form tag markup here? It must have several 'data' attributes to make form work.