#3614 closed defect (bug) (worksforme)
fatal error on bp pages in 1.5 upgrade///
Reported by: | stephenetta | Owned by: | |
---|---|---|---|
Milestone: | 1.5.1 | Priority: | normal |
Severity: | major | Version: | |
Component: | Core | Keywords: | needs-patch |
Cc: |
Description
running a wp multisite 3.2.1 and just upgraded to BP 1.5 from 1.2 – no other BP plugins are running
and am now receiving the following error:
Fatal error: Cannot access empty property in ../html/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 780
using custom theme, so i activated the BP default 1.5 theme and it gives the same error.
the line of code being referenced references a slug, i reset permalinks, but none of the BP pages work.
Change History (8)
#3
@
13 years ago
- Milestone changed from Awaiting Review to 1.5.1
Was thinking about this some more, and while I think that there's something outside of BP itself causing the problem on the OP's installation, I also think that on BP's end, this is another of the consequences of the juggling of active_components and loaded_components. A harmless fix involves doing an empty($id) check before running the $bp->{$id} stuff in bp_is_current_component(). At a minimum, this is something that can be harmlessly introduced for 1.5.1.
#4
@
13 years ago
sorry for the delay in responding (i thought i would get an automatic email...)
anyhoo, here is the output. thanks for looking into this!
array(9) { xprofile?=> int(1) settings?=> int(1) friends?=> int(1) messages?=> int(1) activity?=> int(1) groups?=> int(1) forums?=> int(1) blogs?=> int(1) members?=> int(1) }
I'm not sure why you would have a blank item in $bp->active_components. To help us debug, would you mind putting the following code after line 776, after } else {
Copy the stuff that outputs to your screen and post it here. Thanks!