Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

BP Fatal Error? (10 posts)

Started 1 year ago by: JamieWade

  • Profile picture of JamieWade JamieWade said 1 year ago:

    I am getting the following error on the friends activity stream for people who do not have anyone on their friendslist:

    Fatal error: Call to a member function user_activities() on a non-object in /home/fitnesss/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php on line 259

    Any help would be appreciated.

  • Profile picture of Chouf1 Chouf1 said 1 year ago:

    Deactivate all of your plugins and try only with BP activated.
    After that reactivate one after one your plugins and see where this bug came from.

  • Profile picture of @mercime @mercime said 1 year ago:

    Could also be that you’re using an outdated theme, change to bp-default theme

  • Profile picture of Virtuali Virtuali said 1 year ago:

    Don’t deactivate, because the problem is in the buddypress plugin :)

    Seems you have a broken install. Try removing the buddypress plugin, and re-install it.

  • Profile picture of Brandon Allen Brandon Allen said 1 year ago:

    @JamieWade Are you running the site with WP_DEBUG set to true?

  • Profile picture of JamieWade JamieWade said 1 year ago:

    The problem appears to be theme related, as the error does not show on the BP-Mobile theme. @cnorris23 My WP_DEBUG is set to false.

  • Profile picture of @mercime @mercime said 1 year ago:

    Which theme were you using?

  • Profile picture of JamieWade JamieWade said 1 year ago:

    @mercime I am currently using BP-Widget Theme. I can’t use the BP-Default Theme because I get problems with my footer. I tried it with the BP-Default Theme, and the problem still persists.

  • Profile picture of JamieWade JamieWade said 1 year ago:

    It seems the problem is this code:

    function bp_activities() {
    	global $activities_template;
    	return $activities_template->user_activities();
    	if ( empty( $activity ) )
    		return false;
    	}

    Is there anyway I can add this PHP in to display rather than the error message?:

    <div id="message" class="info">
    		<p><?php _e( 'For help on using Fitness Social, please visit the Support pages.', 'buddypress' ) ?></p>
    	</div>
  • Profile picture of Brandon Allen Brandon Allen said 1 year ago:

    Are you using a custom template for this?