Skip to:
Content
Pages
Categories
Search
Top
Bottom

ERROR: Are you sure you wanted to do that?


  • april
    Participant

    @aprilmaynard

    I’m having some issues with this plugin. Hopefully someone here can help.

    I’ve installed on a local installation, using Instant WordPress.

    I’ve read everything on here about this error and it’s all about ports but I do not know how to make a change to a) Instant WordPress or b) bbpress to fix the issue.

    My error is ERROR: Are you sure you wanted to do that?

    Yes. Yes I am.

    Can anyone offer some insight? Explain it like I’m 5, because the existing answers do not seem to work for me.

    I have the most recent versions of WordPress and bbpress installed. I can create forums and topics with the WordPress dashboard, but not replies. I cannot create forums, topics or replies using the plugin at all.

    Thank you!

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

  • enewsdigest
    Participant

    @enewsdigest

    Dear April,

    I am having the same issue. I also am deploying and testing in Instant WordPress. Have the same problem. Pity no one has come to rescue till now.


    Morisu
    Participant

    @morisu

    I think this has to do with the fact that we are developing on a local machine and not on an actual server. I have seen multiple issues opened because of this error, but no one seems to want to resolve this issue at all. I resolved it by just uploading it to an actual server and working from there. Yes it’s more tedious, but until someone comes forward with how to fully resolve this issue on local machines, you’re stuck with that solution. For styling, I ended up doing the above, throwing in a lot of replies and topics, then dumped the html into a stand-alone html file. Then styled from there on the local machine and re-uploaded the css afterwards. It more than triples the time and work, but it works. If you have a client, just let them know that is the only way as for now. As for why you’re getting the error, I understand it that bbPress logs the ip from the user each creation of a topic/reply and does not recognize 127.0.0.1 or localhost as valid ip’s (which is what most MAMP/WAMP installs use). WordPress is fine with it, but not bbPress, or so I understand it.

    Bumped into this while developing locally, a solution is to filter the requested url in bbp_verify_nonce_request:

    
    add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
    function my_bbp_verify_nonce_request_url( $requested_url )
    {
        return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
    }
    

    Robin W
    Moderator

    @robin-w

    @donutz – thanks for sharing that, I’ll add it to the codex when I get a moment !


    Jack
    Participant

    @moxie

    Where do I have to add that code? I just tried adding it in my functions.php, but that doesn’t seem to work. I’m also working locally, using Bitnami.


    roodigi
    Participant

    @roodigi

    Hello, same question here… Where should we add the code shown in Peter J. Herrel’s post? I searched and couldn’t find a reference to this in the codex. Thanks!


    mchl
    Participant

    @mchl

    thanks @Peter J. Herrel worked a treat.

    @roodigi you add it to your functions file.


    Ajalon
    Participant

    @ajalon

    Many thanks to all on this post.
    Adding the filter to the functions.php file as in this solution worked for me.


    dyrer
    Participant

    @dyrer

    Thanks for sharing


    gimmiefreebies
    Participant

    @gimmiefreebies

    Whenever that’s happened to me it’s because I’ve had the page open too long, or opened in another window (often on another computer). The page changed elsewhere and I’m trying to make changes to an old draft. Not sure that’s the case here, but it did just happen yesterday for that very reason. Refreshing the page and then making edits always fixes for me.


    tiquality
    Participant

    @tiquality

    @donutz Hy Peter, where can I Insert the code you wrote?

    My site is in a internal server, and i didnt understand where I insert this code.

    tks!


    tiquality
    Participant

    @tiquality

    I found the solution… the fix for this was in the function.php of another theme, and I changed it.
    Now I inserted the cde on the bp-custom.php and its safe no more loose this fix.

    Thank you guys


    jethro554
    Participant

    @jethro554

    Thanks for sharing :)


    pravdamien
    Participant

    @pravdamien

    hey guys. thanks so much for this fix on localhost. Works perfectly


    Rizkyandika88
    Participant

    @rizkyandika88

    i have problem error are you sure you wanted to do that on xampp. please help me.. thanks guys

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