Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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, 3 months ago by THP Studio.
    #831676

    Hey 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Best regards,
    John Torvik

    #832163

    Hi

    I am having the same issue with my contact forms. Can you advise on how to fix this. Cheers guys

    #832293
    This reply has been marked as private.
    #832663

    HI THP

    Do you have an answer to the issue?

    #832969

    No, no answer yet.

    #833387

    Hi,

    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ünter

    #836680

    Hey,

    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, 3 months ago by THP Studio.
    #836957

    Hi,

    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):

    http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Günter

    • This reply was modified 7 years, 3 months ago by Günter.
    #837072

    Hi 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.

    #837437

    Hi,

    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ünter

    #837509

    Very 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.

    #837511

    Well done !!

    #837512

    Oh 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?

    #837530

    Hi,

    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, 3 months ago by Günter.
Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Contact Form Element Bug’ is closed to new replies.