• Resolved helenpaling

    (@helenpaling)


    Intermittently receiving the error “Invalid submission, please refresh your screen and try again” when submitting the form, mainly via mobile but occasionally via laptop.

    Trying the test email option works fine

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Funny, I had a similar problem yesterday and was going to report it and then I saw your post. In my case (and it’s not completely resolved), the invalid submission message was caused by an unrelated plugin that had been installed about a week earlier. When I disabled that plugin, the SmartForm worked.

    So I would recommend you check for any newly installed / updated plugins to see if any are interfering.

    EDIT: I just went to your website and successfully registered a FAKE TEAM. You’ll need to remove it.

    • This reply was modified 2 years, 9 months ago by jefromcanada.
    Thread Starter helenpaling

    (@helenpaling)

    Thanks for your reply
    The problem seems to be intermittent as I received your fake team but I’m still receiving messages from others that the form is failing when they try to register

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Hello the invalid nonce error occurs when WordPress is unable to verify the security token, this can happen due these reasons:

    1.- The form is kept open for hours and then submitted which will invalidate the security token and won’t let the submission to pass.
    2.- The users open the form, then in another page they log in or log out of your site and then submit the form before refreshing the page that has the form. Logging in or logging out would also invalidate the wordpress security token which would also cause this message.
    3.- Your site is configured to have a very small lifespan for the security token which would make make users that don’t submit the form fast enough to experience this message.
    4.- You have a cache plugin that is caching the whole page for several days (including the javascirpt variables) which would cause the plugin to use an outdated plugin

    So to fix it you could try:
    1.- Increase the life span of the nonces, you can add this filter in the wp-config file of your site apply_filters( ‘nonce_life’, $day_in_seconds ); replace $day_in_seconds with a number which should be the number of seconds that you want it to last (so for example 172800 would last 2 days).
    2.- Disable any cache plugin that you have and see if the error goes away, it this is the case then the problem is that the cache plugin is also cacheing the security token
    3.- As a last resort you could disable the security validation by opening the file smart-forms-ajax.php and remove these lines:

    if(!wp_verify_nonce($nonce,'save_form'))
    {
        echo '{"message":"'.__("Invalid nonce, please refresh your screen and try again.").'","refreshCaptcha":"n","success":"n"}';
        die();
    }

    ?
    Again this would be just the last resort as removing this would make the plugin to not check if the form submission comes from a valid source.
    ?

    • This reply was modified 2 years, 8 months ago by EDGARROJAS.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid submission, please refresh your screen and try again’ is closed to new replies.