#3035 closed defect (bug) (no action required)
php notices after applying patch
Reported by: | jasonnathan | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Happened after applying patch that fixes 3033
Notice: Undefined index: title in wp31\wp-content\plugins\buddypress\bp-core\bp-core-widgets.php on line 149 Notice: Undefined index: max_members in wp31\wp-content\plugins\buddypress\bp-core\bp-core-widgets.php on line 152 Notice: Undefined property: stdClass::$forums in wp31\wp-content\plugins\buddypress\bp-core\bp-core-filters.php on line 19
Change History (8)
#2
@
14 years ago
What version of BuddyPress are you using
#3
@
14 years ago
The latest bleeding version. Downloaded via svn. After the patch for the widgets were applied, I did a svn update to revision and found these new notices.
#4
@
14 years ago
I managed to get rid of the first few notices by setting a title in the widget (Who's online avatars). However, the widget "Pages" still throws an error about the forums. I have it disabled.
#5
@
14 years ago
Okay I found the problem in bp_core_exclude_pages()
in bp-core-filters.php
if ( !bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && !bp_forums_is_installed_correctly() ) ) $pages[] = $bp->pages->forums->id;
The condition is checking if the forums isn't active. Shouldn't it be checking is it is active?
if ( bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() ) ) $pages[] = $bp->pages->forums->id;
#6
@
14 years ago
Correction, should be
if ( !bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() ) ) $pages[] = $bp->pages->forums->id
;
The last notice is because I disabled forums