Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error: Are you sure you wanted to do that?


  • artmuns
    Participant

    @artmuns

    Hi,

    I’m getting the “Error: Are you sure you wanted to do that?”. This happens when replying to a topic or creating a topic. It’s also intermittent and no clear pattern when it happens. I have found if I reply again (or try creating the topic again) it will post.

    I have looked online for a solution but the solutions I have found don’t seem to apply. Any suggestions?

    Thanks for any help.

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

  • Robin W
    Moderator

    @robin-w

    the error is when the ‘nonce’ does not validate.

    https://codex.wordpress.org/WordPress_Nonces

    not sure what you can do about it, not my speciality 🙂


    artmuns
    Participant

    @artmuns

    the error is when the ‘nonce’ does not validate.

    https://codex.wordpress.org/WordPress_Nonces

    I suppose I could try using translation to make it a friendly message but would rather try and fix it.

    function my_nonce_message ($translation) {
        if ($translation === 'Are you sure you want to do this?') {
           return 'Please try again.';
        } 
    
        return $translation;
    }
     
    add_filter('gettext', 'my_nonce_message');

    Robin W
    Moderator

    @robin-w

    It’s not an error I’ve seen often.

    usually it would relate to url’s being wrong, but this would then apply to all your attempts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar