Skip to:
Content

Opened 5 years ago

Closed 4 years ago

#1093 closed enhancement (fixed)

More graceful error for BuddyPress plugin not activated

Reported by: MikeChallis 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)

comment:1 apeatling5 years ago

  • Milestone changed from 1.1 to 1.2

comment:2 DJPaul4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 1.2.

Note: See TracTickets for help on using tickets.