Opened 17 years ago
Closed 17 years ago
#1093 closed enhancement (fixed)
More graceful error for BuddyPress plugin not activated
| Reported by: | MikeChallis | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2 |
| Component: | Version: | ||
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixed in 1.2.