Opened 10 years ago
Closed 10 years ago
#5545 closed defect (bug) (fixed)
Notice appears when using BP Nav Menus
Reported by: | alnasirkarim | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 2.0.1 | Priority: | normal |
Severity: | normal | Version: | 1.9 |
Component: | Core | Keywords: | has-patch commit |
Cc: | alnasirkarim@… |
Description
Warning: strpos() [function.strpos]: Empty needle in /home/content/92/7143392/html/reunion/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 489
Site: Reunion.tamakboys.net
Buddypress version: 1.9.2
WP version 3.8.3
Attachments (1)
Change History (10)
#3
@
10 years ago
- Keywords has-patch added; reporter-feedback removed
- Milestone Awaiting Review deleted
- Version set to 1.9
alnasirkarim - This occurs when you have deactivated a BuddyPress component, but you still have the menu item for the deactivated component listed under "Appearance > Menus":
http://buddypress.org/support/topic/error-message-warning-strpos-function-strpos-empty-needle-in/#post-176804
I've attached a patch, which fixes the notice from displaying.
It doesn't remove the deactivated component's menu item though. What we could do in an iterative patch is when deactivating a component, check the BP menus and remove the offending menu item.
Core devs: Okay for v2.0.1?
#4
@
10 years ago
- Summary changed from Bug Report on Site. to Notice appears when using BP Nav Menus
#5
@
10 years ago
- Keywords commit added
- Milestone set to 2.0.1
Good find, r-a-y. Yes, this looks safe for 2.0.1.
#6
@
10 years ago
- Resolution set to fixed
- Status changed from new to closed
Thank you r-a-y.
It worked.
What URL did you access to trigger this error?