-
AuthorPosts
-
December 18, 2015 at 6:10 am #554835
Just recently (Dec 2nd) we started experiencing a problem on our site using Enfold. I only discovered it last night. We have over 160 posts with a contact form on them, and the to-email address is unique for each of those posts. We had previously set up all these posts when we migrated from our old theme to Enfold. Each contact form was customized with the correct email address. Everything was fine.
As of Dec 2nd, the email address in these contact forms started breaking. We have started adding users to our WordPress installation, and assigning each post to the relevant user. Each member has one of these pages to advertise their services and provide a way to contact them. We started adding users and making them the author of their post, which of course means we have to ‘update’ their post. It looks like time we ‘Update’ a post it breaks the to-email of the contact form.
I can see in the DB wp_postmeta table that the broken contact forms have this in place of the valid email address:
[av_contact email=\'<a class=\"__cf_email__\" href=\"/cdn-cgi/l/email-protection\" data-cfemail=\"3a515b575b565b7a495b544e5b59484f404a564f575853545d53545914595557\">[email protected]</a><script data-cfhash=\'f9e31\' type=\"text/javascript\">\r\n/* <![CDATA[ */!function(){try{var t=\"currentScript\"in document?document.currentScript:function(){for(var t=document.getElementsByTagName(\"script\"),e=t.length;e--;)if(t[e].getAttribute(\"data-cfhash\"))return t[e]}();if(t&&t.previousSibling){var e,r,n,i,c=t.previousSibling,a=c.getAttribute(\"data-cfemail\");if(a){for(e=\"\",r=parseInt(a.substr(0,2),16),n=2;a.length-n;n+=2)i=parseInt(a.substr(n,2),16)^r,e+=String.fromCharCode(i);e=document.createTextNode(e),c.parentNode.replaceChild(e,c)}t.parentNode.removeChild(t);}}catch(u){}}()/* ]]> */</script>\'
When we open the contact form editor, we see the WP admin email address instead of the user’s email address. But that is only because the Enfold code is telling it to display the default email address if there is no email address there. In fact, not even the default email address is going into the database. In it’s place is this code above which is breaking the functionality of the contact form.
When I do a test through the contact form, it never arrives at the default email address. Also, when I change to the correct email address and ‘Save’ the changes to the contact form then ‘Update’ the post and check the contact form again, the changes have not been saved.
When I scan the wp_postmeta table for a contact form that has a valid email address instead of this javascript code in the to-email field and find a post which has a valid email address, then I go into the post editor and open the contact form editor, instead of their email address showing, it is the default email. Which makes me think that this javascript code gets put into the contact form either when we open the post editor, or we open the contact form editor.
Details for logging in are in the private content.
I have also tested by turning off all plugins, refreshing a page, then editing to correct the email address in the contact form and clicking the Update button on the post. When I go back and check the email address in the contact form it is still showing the same problem. So still the changes are not being saved
- This topic was modified 9 years ago by mikehartrich. Reason: Adding information
December 18, 2015 at 7:12 am #554849Hey mikehartrich!
Thanks a lot for your detailed report, we do appreciate it a lot.
We do know the issue that exists and we are fixing it.We would appreciate your patience, while we take care of it
Cheers!
BasilisDecember 19, 2015 at 12:43 am #555268Ok. Can you let me know when the fix has been released? Then I can update Enfold and test it then get to work changing all the 160 contact forms that will need to be fixed.
I just updated to the version released today and tested but that didn’t have this bug fix in it, because the problem persists.
December 23, 2015 at 5:50 pm #557121Hi!
Enfold v3.4.7 is out and wondering if you still experience this issue?
Does the same issue occur when you activate a default WordPress theme instead? please let us know about your results.
Regards,
AndyDecember 28, 2015 at 8:15 pm #557821Hi Andy
Yes, we are still experiencing the problem.
Activating the default theme is not just a simple matter of doing that and then going back to Enfold. When I do I have to waste time setting up sidebar widgets again because they disappear, not to mention that the entire live site will be messed up during the time I am doing that and testing. Also because the issue is with the Enfold Contact Form Widget, if I switch to the default theme I won’t be test the contact form widget, right?
That newest version did fix another issue we were having though :)
- This reply was modified 8 years, 12 months ago by mikehartrich.
December 31, 2015 at 11:32 pm #558776Hey!
Try disabling CloudFlare email protection and see if that fixes the issue.
Best regards,
JosueJanuary 6, 2016 at 3:12 am #560257That fixed it!
January 6, 2016 at 11:32 am #560418You are welcome, glad to help :)
Regards,
JosueJanuary 14, 2016 at 8:34 pm #565757Ok, opening this ticket again. We can change the email address now. But the contact form is not sending emails. It acts like it’s working, but we never get the email.
There is a usability issue with the send button as well. It often takes 2-3 tries before it actually registers the click and submits the form.
Cloudflare has been off since Jan 6. I am sure I had purged the cache at that time, but i just did it again in case. We have no local cache.
January 15, 2016 at 12:11 pm #566062Hi!
Can you try point 2 of the following article?
http://kriesi.at/documentation/enfold/my-contact-form-is-not-sending-emails/Best regards,
JosueJanuary 15, 2016 at 9:19 pm #566320Hi Josue,
I tried point 2 last night. No difference. However, I was getting emails from wordpress@ when I submitted through the comment form. So wordpress@ was able to send mail. But after implementing point 2, the Enfold contact form was still not sending.January 16, 2016 at 5:45 am #566446A support person at our hosting company uploaded a PHPmailer script to the site to test if mail was able to be sent from the server. I tested it by sending to the two email addresses I have been using in my testing of the contact form. Both emails were received. So the host is not the problem. Mail can be sent from the server. The email recipients are not the problem, as both mails were received.
January 16, 2016 at 1:05 pm #566522Hi!
Can you try again? i just applied the code from the article to functions.php, then made a test here, and i did get the message – http://screencast.com/t/PuYLy2IG
Best regards,
JosueJanuary 16, 2016 at 8:05 pm #566574I just tried sending a couple of emails to different addresses from the page you created Josue and I haven’t received the emails.
It was weird yesterday I received one email from an Enfold contact form I had set up to test. it was an anomaly. Further testing without having changed anything and I did not get any more emails.
January 17, 2016 at 1:05 am #566656Hi!
– Could you do a test with a gmail address (as recipient)?
– Also, can you check if you get the messages using this plugin?Cheers!
JosueJanuary 17, 2016 at 1:32 am #566681I believe I used my gmail address on a previous test. But I just did it again and will let you know if I get the email. Otherwise assume I didn’t.
I won’t be able to install that plugin until Monday.
January 17, 2016 at 1:37 am #566684January 19, 2016 at 4:13 am #567558I set up a gmail address as recipient and received the email. Then I set the form up with my main .info email address and received nothing. Set the form up with our support@ email as the recipient and have received nothing.
January 19, 2016 at 6:34 am #567633I have figured out that it’s the email validation option in the contact form that is causing the problem. Emails to .com addresses seem to work when validation is turned on now (after all these fixes above). But .com seems to be the only extension that gets validated properly.
When I turn the validation off and set it to ‘is not empty’ instead then I also receive emails to .net, .org, and .us domains. Even with validation turned off I do not receive emails to .info domains. I have not tested any other domains.
So maybe your email validation script needs to be updated?
January 19, 2016 at 11:55 am #567771That sounds like a very weird issue. I’ve made some tests (validation on/off) with an .at domain address (i currently don’t have any net, info, us available) and i did get the messages, it took some time though (10-12 min).
Best regards,
JosueJanuary 20, 2016 at 4:22 am #568350It is a very weird issue. I just realized that even though it definitely helped to turn off the email validation in that we received to email addresses that we couldn’t before, that email validation is for the senders email address and the issue is with the recipients email address. So it doesn’t make sense, but I saw better results after I did that.
Is anyone else experiencing or reporting this issue?
January 20, 2016 at 11:49 am #568533No i haven’t so far. At this point i’d suggest you trying out a third-party contact form:
https://wordpress.org/plugins/contact-form-7/If it works as expected i can help you stylize it to match the Enfold form appareance.
Cheers!
JosueFebruary 8, 2016 at 5:52 pm #579787Hi
Same problem for me..co.uk domain send address stopped working. It did work for sometime which is strange in its self. After reading this thread I tried a test changing the send email address to my gmail.com account. This worked fine. So now I have moved to using Contact Form 7 so my client can receives email to their sales @ .co.uk address.
Chris
February 10, 2016 at 12:42 pm #581052Hey!
glad it’s working with contact form 7 for you. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Regards,
AndyMarch 21, 2016 at 10:20 am #601135Hello JOSHUA
Thank you for your good tip
“Try disabling CloudFlare email protection and see if that fixes the issue.”Always a pleasure when you stumble across a gem of a post that provides exactly what you were looking for.
Thanks
BlueSky
March 21, 2016 at 11:46 pm #601596You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.