Skip to:
Content
Pages
Categories
Search
Top
Bottom

$bp->activity->table_name gives a blank

  • @nicholmikey

    Participant

    Any idea why $bp->activity->table_name returns nothing? Can I only call this after a certain action?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @nicholmikey

    Participant

    After of hours of hair pulling that I deserve as a BP newbie, i discovered that if I hook into bp_init this works fine.

    add_action( ‘bp_init’, ‘save_your_activity’ );

    The problem was with saving things to the activity stream using bp_activity_add, the save() function in bp_activity_classes.php was putting out bad sql that was missing the table name.

    I feel much better now.

    @gunju2221

    Participant

    We have all been through hours of trial and error :)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$bp->activity->table_name gives a blank’ is closed to new replies.
Skip to toolbar