Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bug report: installation does not create initial forum

  • If you install bbPress integrated with WordPress, the installation fails with a message “Your installation failed with some minor errors.”

    Looking at the error log, the message was:

    “Forum could not be created!”

    I dug through the code, and found the problem, in bb-admin/includes/functions.bb-admin.php, in the function bb_new_forum:

    // Expects forum_name, forum_desc to be pre-escaped

    function bb_new_forum( $args ) {

    global $bbdb;

    if ( !bb_current_user_can( ‘manage_forums’ ) )

    return false;

    bb_current_user can ONLY return true if you are currently logged into WordPress as an administrator. I recommend changing the ‘if’ condition to:

    if ( !BB_INSTALLING && !bb_current_user_can( ‘manage_forums’ ) )

  • You must be logged in to reply to this topic.
Skip to toolbar