#5571 closed defect (bug) (fixed)
Updating profile results in fatal error if activity component is disabled
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.0.1 | Priority: | normal |
| Severity: | normal | Version: | 2.0 |
| Component: | Extended Profile | Keywords: | |
| Cc: |
Description
Reported here:
http://buddypress.org/support/topic/bp-2-0-fatal-error-profile-updates/
shanebp and I cannot duplicate it, but adding a sanity check for the activity component is best in the bp_xprofile_updated_profile_activity() function.
Change History (4)
#2
@
12 years ago
- Owner set to r-a-y
- Resolution set to fixed
- Status changed from new to closed
In 8306:
#3
@
12 years ago
Or, this should be moved into the Activity component:
add_action( 'xprofile_updated_profile', 'bp_xprofile_updated_profile_activity', 10, 5 );
Which will avoid cluttering up functions like these with function_exists checks
#4
@
12 years ago
True; view any bp-COMPONENT-activity.php file and all those functions do something similar at the moment, which isn't ideal.
I was thinking of doing a conditional check for bp-COMPONENT-activity.php in all our component loader's includes() method, but that is probably too disruptive for a point release.
In 8305: