Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_has_groups – return fatal error


  • Jek-fdrv
    Participant

    @jek-fdrv

    PHP Fatal error: Uncaught Error: Call to a member function groups() on null in local/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php:255
    Stack trace:
    #0 local/wp-content/themes/kleo-child/functions.php(266): bp_groups()
    #1 local/wp-settings.php(366): include(‘/Users/Eugene/D…’)
    #2 local/wp-config.php(92): require_once(‘/Users/Eugene/D…’)
    #3 local/wp-load.php(37): require_once(‘/Users/Eugene/D…’)
    #4 local/wp-admin/admin-ajax.php(22): require_once(‘/Users/Eugene/D…’)
    #5 {main}
    thrown in local/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 255

    I placed this code in my theme functions.php file, and it produced this error. Why?

Viewing 1 replies (of 1 total)

  • Jek-fdrv
    Participant

    @jek-fdrv

    Same for this code.

    $vgroups = $groups = BP_Groups_Group::get(array(
    ‘type’=>’alphabetical’,
    ‘per_page’=>999
    ));
    print_r($vgroups);

    Table ‘databasename.gm1’ doesn’t exist

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar