Skip to:
Content

bbPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#2147 closed defect (fixed)

Multisite: Manually adding a new site creates warnings

Reported by: r-a-y Owned by: netweb
Milestone: Priority: normal
Severity: normal Version: 2.2
Component: Tools - Warnings/Notices Keywords:
Cc:

Description

If bbPress is network-activated and you manually create a new site, warnings appear after site creation.

Steps to reproduce:

  1. Create a WP network
  2. Network-activate bbPress
  3. Manually add a new site by navigating to "Sites > Add New" in the WP network dashboard.
  4. After submitting the form, the following warnings show up:
[04-Jan-2013 21:00:22 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, boolean given in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  Invalid argument supplied for foreach() in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, boolean given in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  Invalid argument supplied for foreach() in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, boolean given in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  Invalid argument supplied for foreach() in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, boolean given in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  Invalid argument supplied for foreach() in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, boolean given in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

[04-Jan-2013 21:00:22 UTC] PHP Warning:  Invalid argument supplied for foreach() in \www\wp-content\plugins\bbpress\includes\core\capabilities.php on line 453

Judging from the error, the WP editable roles are not populated by the time bbp_filter_blog_editable_roles() hooks in to do its thang.

Change History (5)

#1 @r-a-y
8 years ago

Forgot to say that this is with WP 3.5 and bbP 2.2.3.

#2 @johnjamesjacoby
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate, and already fixed in trunk. Reopen if you experience otherwise.

#3 @r-a-y
8 years ago

Apologies! Couldn't find a related ticket.

Confirmed fixed in trunk.

#4 @netweb
7 years ago

  • Owner set to netweb
  • Resolution changed from duplicate to fixed

In 5152:

Introduce vBulletin v3.x bbPress importer. Props netweb. Fixes #2147

#5 @netweb
7 years ago

  • Keywords needs-patch removed

Doh!

Ignore that last message, got the ticket # wrong in my commit ;)

Note: See TracTickets for help on using tickets.