• Resolved angelabelen

    (@angelabelen)


    When autoptimize?is enabled, the captcha on the forminator form is not showing, but when it is disabled, captcha is working.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    First and foremost try to identify what is breaking things by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can see what the next steps need to be ??

    frank

    Thread Starter angelabelen

    (@angelabelen)

    How can I put this script to the exclude scripts from Autoptimize:

    <script type="text/javascript" async="" src="https://www.gstatic.com/recaptcha/releases/MydHw_zggsxIJuhSbyOmPv5R/recaptcha__en.js" crossorigin="anonymous" integrity="sha384-LzEnReQQed5ol5AFwl71PUw/lqyIcw22944Y6TAegcKGwBmgeJYXjB2CbgaSwp8z"></script>
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I would add recaptcha, that _should_ do it ??

    Thread Starter angelabelen

    (@angelabelen)

    Just recaptcha? It stills give me this error:

    reCAPTCHA couldn't find user-provided function: forminator_render_captcha
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’ll also need to exclude the JS that defines the forminator_render_captcha function. if that is set inline, you could just add forminator_render_captcha to the comma-separated exclusion list, if not inline you’ll have to identify the forminator JS-file that has that function OR exclude wp-content/plugins/forminator (i.e. all forminator JS)?

    Thread Starter angelabelen

    (@angelabelen)

    The function is inside that script that I sent you. Also when I exclude the wp-content/plugins/forminator, the form will not work anymore

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you share the URL of a page on your site that has a recaptcha-using forminator-form so I can have a look at the HTML/ JS?

    Thread Starter angelabelen

    (@angelabelen)

    Here’s the url (https://cwcstage.wpengine.com/register). But it needs a username and password, can I please give it to you via email?

    • This reply was modified 1 year, 5 months ago by angelabelen.
    • This reply was modified 1 year, 5 months ago by angelabelen.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    sharing usernames/ passwords is not permitted here, but you can share your site’s URL with me at futtta-at-gmail-dot-com ??

    Thread Starter angelabelen

    (@angelabelen)

    Thank you. Email sent

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, so forminator_render_captcha is in wp-content/plugins/forminator/build/front/front.multi.min.js so you could try excluding that file, but I would recommend disabling “aggregate JS” (which can be counter-productive as HTTP/2 handles transferring many small files better then transferring one big one) and instead use “don’t aggregate but defer” and “also defer inline JS” (which ensure all JS is executed in the correct order), you might even be able to remove all exclusions in that case? ??

    alternatively you could also simply disable “optimize javascript” on the registration page (in the “edit” screen of said page in the “autoptimize this page” metabox untick “optimize JS”).

    hope this helps,
    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Did you succeed in getting this fixed Angela? ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got resolved? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Forminator captcha not working because of autoptimize’ is closed to new replies.