• Resolved bob1984

    (@bob1984)


    Hi

    We were previously having trouble with Forminator Pro and when users would submit a form, they would be presented with “Invalid Nonce” error and the form would not come through to us.

    After doing some research online, I thought I had found the fix, whereby we loaded the forms using AJAX and “Prevent page caching on form pages”.

    The problem still remains… after reviewing Microsoft Clarity screen recordings of website users that we filling out forms, it appears that the Invalid Nonce error is back. So far we have lost out on 11 quotation requests in 10 days… any ideas on how to fix this properly?

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @bob1984 !

    I’m sorry to hear that you’ve experienced this issue!

    This sounds very odd as usually loading the form using Ajax will solve the issue. Have you cleared the caches after making the change? Maybe the page with the form is still cached and the Ajax setting hasn’t been yet applied there because of that.

    If the above fails, please try by using this snippet:

    <?php
    function wpmudev_forminator_ajax_load_without_nonce() {
    	$_POST[ 'nonce' ] = wp_create_nonce( 'forminator_load_module' );
    }
    add_action( 'wp_ajax_forminator_load_form', 'wpmudev_forminator_ajax_load_without_nonce' );
    add_action( 'wp_ajax_nopriv_forminator_load_form', 'wpmudev_forminator_ajax_load_without_nonce' );

    To install:
    – create the wp-content/mu-plugins directory if it doesn’t exist
    – copy the code to a .php file with any name
    – upload the file to the mu-plugins directory

    Please let us know if this helped.

    Best regards,
    Pawel

    Thread Starter bob1984

    (@bob1984)

    Many thanks Pawel, ill keep an eye on it over the coming weeks.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Invalid Nonce Error’ is closed to new replies.