bp_has_groups – return fatal error
-
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 255I placed this code in my theme functions.php file, and it produced this error. Why?
- You must be logged in to reply to this topic.