Correct way of initialize BuddyPress
-
Hello,
I’m developing BuddyPress XML-RPC Receiver plugin (http://github.com/duduweiland/buddypress-xmlrpc-receiver), but i’m stuck with a problem: initialize BuddyPress core and plugins.
I was using `do_action( ‘bp_init’ )` but testing with some plugins it doesn’t works.
Welcome Pack:
`PHP Fatal error: Cannot redeclare class DP_Welcome_Pack_Admin in /var/www/html/blog/wp-content/plugins/welcome-pack/welcome-pack-admin.php on line 22`BP Webcam Avatar:
`PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bp_wa_setup_globals’ not found or invalid function name in /var/www/html/blog/wp-includes/plugin.php on line 406
PHP Fatal error: Cannot redeclare wa_setup_globals() (previously declared in /var/www/html/blog/wp-content/plugins/bp-webcam-avatar/wa.php:4) in /var/www/html/blog/wp-content/plugins/bp-webcam-avatar/wa.php on line 11`BuddyPress Usernames Only:
`PHP Fatal error: Cannot redeclare ray_bp_core_get_userlink() (previously declared in /var/www/html/blog/wp-content/plugins/buddypress-usernames-only/bp-usernames-only.php:10) in /var/www/html/blog/wp-content/plugins/buddypress-usernames-only/bp-usernames-only.php on line 16
`I don’t know exactly what are these errors, but looks like some plugins are being loaded twice (I have a lot of others plugins here and they works just fine!)
Anyone have any idea what it could be?
- The topic ‘Correct way of initialize BuddyPress’ is closed to new replies.