-
AuthorPosts
-
July 30, 2017 at 12:32 am #831627
There is a bug in the contact form element. I can replicate it every time.
In the Contact Form page element, delete everything in the “Form Title” field so its blank.
Tick the “Hide Form Labels” checkbox.
Close, and update the page. Works, right?
Now go and edit something on that page again. Or click back into the Contact Form element, and you’ll see these 2 things have lost their settings and reverted to defaults.
Hope this can be fixed, very annoying little bug.
- This topic was modified 7 years, 4 months ago by THP Studio.
July 30, 2017 at 6:12 am #831676Hey THP,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Best regards,
John TorvikJuly 31, 2017 at 3:05 pm #832163Hi
I am having the same issue with my contact forms. Can you advise on how to fix this. Cheers guys
July 31, 2017 at 5:42 pm #832293This reply has been marked as private.August 1, 2017 at 7:51 am #832663HI THP
Do you have an answer to the issue?
August 1, 2017 at 5:01 pm #832969No, no answer yet.
August 2, 2017 at 12:17 pm #833387Hi,
Thank you for using our theme.
Sorry for the late reply.
I’m not able to login at your backend, because I’m redirected to a “E-Mail” login.
So I tried to reproduce it on my local install, but was not able to do so.
A plugin conflict may be one of the reason for this issue.
To find which plugin is causing the conflict please follow these steps:1. Go to your plugins page > Deactivate all active Plugins
2. Update WordPress and Enfold to latest version if you have not.
3. Make sure all the plugins are updated.
4. If the problem does not persist when plugins are turned off, activate one plugin at a time and refresh until you find the plugin in conflict.We await the results of your plugin compatibility test.
Thanks for your cooperation :)
Best regards,
GünterAugust 9, 2017 at 11:18 pm #836680Hey,
Sorry, my security settings were preventing you from logging in.
I have fixed it now, and reset your password. Please use the info in the private field to try it
- This reply was modified 7 years, 4 months ago by THP Studio.
August 10, 2017 at 1:24 pm #836957Hi,
Thanks for the login details.
I could check your page – the reason is that you hacked the shortcode for the contact form:
[av_contact <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="90f5fdf1f9fcadb7f9fef6ffd0e4f9fdf8f5e3e4f5e2bef3fffdbef1e5">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script>' title='' button='Submit' on_send='' sent='Your message has been sent!' link='manually,http://' subject='' autorespond='' captcha='' hide_labels='aviaTBhide_labels' form_align='' color='' custom_class='' admin_preview_bg='']
The normal shortcode looks something like:
[av_contact (Email address hidden if logged out) ' title='Send us mail' button='Submit' on_send='text' sent='Your message has been sent!' link='' subject='' autorespond='' captcha='' hide_labels='' form_align='' color='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='']
This hack breaks the WordPress parser for shortcodes and this leads to default values, because our code relies on that – and all your setting are lost.
A shortcode must follow the rules defined by WordPress.
Of course, you are free to adopt the contact form shortcode class if you wish (enfold\config-templatebuilder\avia-shortcodes\contact.php):
Best regards,
Günter- This reply was modified 7 years, 4 months ago by Günter.
August 10, 2017 at 5:23 pm #837072Hi Gunter,
Ok so you are kind of right and kind of not…
First, i have never manually messed with that code. But indeed you are correct, it seems to be spitting out weird shortcodes.
So I just deleted the element and created a brand new Contact form element. And guess what happened….The brand new element created the same weird code that you referred to in your post. So this is somehow being generated by Enfold – not by me.
And the same issue exists, of it not saving the settings.
Please take another look and see for yourself what is happening.
Thanks a lot.
August 11, 2017 at 1:19 pm #837437Hi,
I have checked again. It is not Enfold that inserts this code.
You can check (created 2 Test pages):
- Add a new contact form and check the code in the debug window – this code is OK
- Safe the page – the code is added at test page Enfold Contact Form 2 but not at Enfold Contact Form
Enfold is saving the content of the debug window without doing any changes to it. If it was Enfold, than it would happen on both pages.
It seems to be in connection with cloudflare, because the script added refers to /cdn-cgi/l/email-protection.
Check with your hoster, if there is running a security script.
Best regards,
GünterAugust 11, 2017 at 4:37 pm #837509Very interesting find, thank you Gunter for your work.
For others that have this same issue, the culprit is Cloudflare’s Email Address Obfuscation feature, found under the Scrape Shield section.
Turning this OFF means the enfold shortcode no longer gets ruined.
Thanks again, I appreciate your help in determining the cause.
August 11, 2017 at 4:39 pm #837511Well done !!
August 11, 2017 at 4:40 pm #837512Oh one last question on this then – does the Enfold form contain some form of its own Email Address Obfuscation, so the email address isn’t exposed to the world?
August 11, 2017 at 5:09 pm #837530Hi,
Thank you for pointing out the problem for other users.
The E-Mail is not rendered to the frontend – so this actually no problem.
Thank you for using Enfold and enjoy the theme.
Feel free to come back with further problems or questions you have. Simply open a new thread.
Best regards,
Günter- This reply was modified 7 years, 4 months ago by Günter.
-
AuthorPosts
- The topic ‘Contact Form Element Bug’ is closed to new replies.