[buddypress-trac] [BuddyPress] #1093: More graceful error for BuddyPress plugin not activated

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Sep 25 22:09:34 UTC 2009


#1093: More graceful error for BuddyPress plugin not activated
------------------------+---------------------------------------------------
Reporter:  MikeChallis  |       Owner:     
    Type:  enhancement  |      Status:  new
Priority:  minor        |   Milestone:  1.1
Keywords:               |  
------------------------+---------------------------------------------------
 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'));
  }
 ?>
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1093>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list