Nonce error on contact form submission

[ad_1]

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer