#2147 closed defect (bug) (fixed)
Multisite: Manually adding a new site creates warnings
Reported by: |
|
Owned by: |
|
---|---|---|---|
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:
- Create a WP network
- Network-activate bbPress
- Manually add a new site by navigating to "Sites > Add New" in the WP network dashboard.
- 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)
Note: See
TracTickets for help on using
tickets.
Forgot to say that this is with WP 3.5 and bbP 2.2.3.