3 years, 5 months ago
I copied this into “How-to & Troubleshooting”…please delete this topic, dear admin
3 years, 7 months ago
thanks for the advice.
I am still confused why the “official” buddypress codex advises to hook plugins to bp_include if this is too early.
I changed my code to `
add_action( ‘bp_loaded’, ‘my_plugin_init’ );`
This solved the fatal error, yet I don’t see any changes in group behaviour…but I’ll look into that.
Update: I split this into two files: the plugin header, the function my_plugin_init() and the add_action into an initthisplugin.php, and the rest into myPlugin.php
Now myPlugin.php gets loaded, since buddypress is active, but stills throws an Fatal error: Call to undefined function bp_is_active().
yes, it is activated. Everything I tested with it works like a charm (new member sign-up from frontend/backend, create new group, add friends …)
I am totally lost where this error comes from.
If I comment this line out I get the nexrt error: Class ‘BP_Group_Extension’ not found
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service