Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 8 years ago

#6664 closed defect (bug) (fixed)

Undefined index: position in buddybar

Reported by: danbp's profile danbp Owned by:
Milestone: Priority: normal
Severity: minor Version: 2.3.3
Component: Toolbar & Notifications Keywords: needs-testing
Cc: danco38@…

Description

BP 2.3.4

When not logged in, a notice comes up about
Undefined index: position in ../bp-core-buddybar.php on line 472 and 477

A check is missing in bp_core_sort_subnav_items fn.

Adding

if ( isset($subnav_item['position']) && isset( $temp['position'] ) ) {

line 466 and closing it line 483 solved the issue.

Change History (5)

#1 @DJPaul
9 years ago

How do we recreate this? Where do we have to go and what do we have to do?

#2 follow-up: @danbp
9 years ago

No idea ! I deactivated any of my plugins after i saw this notice, which appeared after i was logout.

Made a few debug tests, then patched bp-core-buddybar.php and came here to relate that. SSo far i remember, his wasn't in BP 2.3.3

A similar issue here: #6085

#3 in reply to: ↑ 2 @henry.wright
8 years ago

Replying to danbp:

...I deactivated any of my plugins after i saw this notice, which appeared after i was logout.

Could it be one of those plugins were to blame?

#4 @DJPaul
8 years ago

  • Component changed from General - Toolbar/BuddyBar to Toolbar & Notifications

#5 @tw2113
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Closing, since we deprecated the function question in BuddyPress 2.6.0

Note: See TracTickets for help on using tickets.