BBPress ERROR: Are you sure you want to do that? – MAMP Fix


About The Author
Cabe Nolan is the founder of WP Cover where he shares his insight into WordPress, development, & entrepreneurship. Outside of WPCover, Cabe continues to run a successful WordPress development firm, Bold City Design as well as a few high profile websites, Arrivala, Two Way Resume, Dock Skipper, and a successful outdoors brand, DolfinPack.







BBPress ERROR: Are you sure you want to do that? – MAMP Fix

Quick post today on developing locally with BBPress.  Similarly to a lot of developers, we use MAMP frequently to develop locally.  A strange error related to MAMP and BuddyPress reared its head today after installation and trying to create a test forum post.

The error states, “ERROR, Are you sure you want to do that?”.  Your answer is likely, “Yes, that’s exactly what I want to do”.  Yet, no matter how many times you submit, the same error always displays.

 

Luckily, it’s a very quick and easy fix to get around this error.  Simply open up your active themes function.php file and paste in the following:


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'];
}

Simple as that! Save your functions.php file and get on with your day.


Share Your Thoughts

Leave a Reply

Your email address will not be published.


Related Stuff You Might Like







WordPress News, Tips, & Code Snippets

Join the WP Cover mailing list and get wordpress news, tips, code snippets, security warnings, and more delivered right to your inbox.  We won't flood your inbox, newsletters typically go out every 1-2 weeks unless it involves an important security release.

You have Successfully Subscribed!