Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_activity_update_meta undefined in bp-blogs-function

  • @misslhansen

    Participant

    I have installed buddypress but am getting the following error message:

    PHP Fatal error: Call to undefined function bp_activity_update_meta() in /…/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php on line 537, referer: http://www.SITE.com/wp-admin/post.php?post=17416&action=edit

    Based on information the client has passed along I believe that this is occurring when she publishes an existing post. She reported that the screen just goes blank.

    I’m not sure what to do to go about Troubleshooting this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @misslhansen

    Participant

    I have the following function relating to the activity stream in my themes function file:

    //silent mode for site admins
    // Code for: Don’t record activity by the site admins or show them as recently active
    function my_admin_stealth_mode(){
    	if ( is_super_admin() ) {
    		global $bp;
    		remove_action('wp_head','bp_core_record_activity');
    		delete_user_meta($bp->loggedin_user->id, ’last_activity’);
    	}
    }
    
    add_action('init','my_admin_stealth_mode');

    I also have the plugin edit-flo installed

    @misslhansen

    Participant

    Another unique thing about the setup of this site is that the posts are created using gravity forms. They are set as drafts, then we log in, review them, give them a custom status using edit flow which then pushes them through to a ‘published’ status.

    The activity table has nothing besides members last activity

    activity meta is empty

    @r-a-y

    Keymaster

    This is a bug that is fixed and scheduled for v2.1.1.

    In the meantime, add this interim fix to /bp-blogs/bp-blogs-functions.php:
    https://buddypress.trac.wordpress.org/attachment/ticket/5897/5897.01.patch

    @misslhansen

    Participant

    Thanks. Sorry I did check the known issues file and didn’t see it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bp_activity_update_meta undefined in bp-blogs-function’ is closed to new replies.
Skip to toolbar