[buddypress-trac] [BuddyPress] #4403: Fatal Error After Upgrading to BuddyPress 1.6

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Aug 8 01:07:10 UTC 2012

#4403: Fatal Error After Upgrading to BuddyPress 1.6
 Reporter:  steve7777           |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  1.6.1
Component:  Core                |     Version:  1.6
 Severity:  critical            |  Resolution:
 Keywords:  2nd-opinion commit  |
Changes (by boonebgorges):

 * keywords:  2nd-opinion => 2nd-opinion commit


 Hi sbrajesh. Thanks for jumping in here.

 > The problem is I am using the check, bp_is_user as soon as the
 functions.php is loaded(even before after_setup_theme).

 Right. I figured you were probably doing something like this. The
 "correct" way, for what it's worth, is to hook your nav-modifying
 functions to 'bp_setup_nav'; if you use a priority like 100, you can be
 sure that BP has finished setting up all navigation.

 I had a quick scan over the bp_is_* functions, and it looks at a glance
 like the only external functions used are bp_loggedin_user_id() and
 bp_displayed_user_id(). So I think we're safe to do (2) above. I'll take
 care of it for 1.6.1 unless one of the other devs has any objection.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4403#comment:17>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list