• Resolved bodd54

    (@bodd54)


    Hi Guys,

    I have just fixed a nonce error on my Forminator contact form by turning off the Defer Render-blocking JavaScript, I have advised the plugin developers about this as well but wondered if you were aware of a fix to allow me to turn on the SG Optimizer Defer Render-blocking JavaScript again.

    The form suddenly stopped working on Iphone safari and stopped displaying altogether on Edge however worked fine on Chrome and Firefox. Tried to exclude url from cache and turned on the use AJAX button but still did not work and only started to work when I turned off Defer Render-blocking JavaScript using the SG Optimizer.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support daniellaivanova

    (@daniellaivanova)

    Hello @bodd54,

    I installed a fresh WordPress application on my domain with just the SG Optimizer and Forminator plugins installed. I can confirm that when I enable the Defer Render-blocking JavaScript Frontend optimization, the form continues to work as expected in Chrome, Firefox, and Safari.

    Due to that, I believe that the issue which occurs on your website might be caused by another plugin or by the theme used by the application. I would recommend you also test it on a fresh WP install with a default theme active and after that, install the ones you currently use to check which one might break the contact form.

    Additionally, you may try and exclude the conflicting script by using the filter below in the theme’s functions.php file:

    add_filter( 'sgo_js_async_exclude', 'js_async_exclude' );
    function js_async_exclude( $exclude_list ) {
    $exclude_list[] = 'string-to-exclude';
    return $exclude_list;
    }

    ,where you should substitute the string-to-exclude string with the actual script you want to exclude from the defer loading of render-blocking JavaScript files.

    Best Regards,
    Daniela Ivanova

    Thread Starter bodd54

    (@bodd54)

    Thank you for your extremely prompt reply, sadly I am not clever enough to be interfering with the functions.php, I will have a look at working with the staging. I am unable to work with this for a wee while so perhaps you should consider closed in the meantime till I get back.

    Thank you so much

    Plugin Support daniellaivanova

    (@daniellaivanova)

    Thank you for your update,

    Indeed, the Staging functionality is great for conducting such tests. You may find many tutorials in our KB on the matter that can be helpful.

    Best Regards,
    Daniela Ivanova

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nonce error on contact form submission’ is closed to new replies.