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

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

Cabe Nolan Author
Cabe Nolan June 19, 2018

Share:

This post was originally created on our sister site WP Cover.
View Original Article

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.

The post BBPress ERROR: Are you sure you want to do that? – MAMP Fix appeared first on WP Cover.

Share:

Cabe Nolan Author Image
Written by

Cabe Nolan