Opened 15 years ago
Closed 15 years ago
#1093 closed enhancement (fixed)
More graceful error for BuddyPress plugin not activated
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.2 | Priority: | minor |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: |
Description
There should be a more graceful error for BuddyPress plugin not activated.
I just installed BP 1.1 on a fresh install of WPMU.
Well... I forgot to activate the BuddyPress plugin, then got this error on the blog site:
Fatal error: Call to undefined function bp_page_title() in /bp/wp-content/themes/bp-sn-parent/header.php on line 9
Here is my proposed code to provide a more graceful and meaningful error. This goes in the very top of themes/bp-sn-parent/header.php:
<?php if ( !function_exists('bp_page_title') ) { die(__('Did you forget to activate the BuddyPress plugin?','buddypress')); } ?>
Change History (2)
Note: See
TracTickets for help on using
tickets.
Fixed in 1.2.