Activating the Site Tracking component
Installing Buddypress on a existing WordPress site with a large number of users I’ve found that on activating the Site Tracking component I get the white screen of death. The front end of the site still works, mostly, but it’s completely killed the back end. Fortunately I’m doing this on a test site, with BP 184.108.40.206 & WP 4.2.2, and have tried with no other plugins installed and the 2015 theme. This is a single site, not multisite.
I’ve traced this back to the bp_blogs_record_existing_blogs function, specifically
$users = get_users( array(
‘blog_id’ => $blog_id
OK, so it can’t cope with the number of users and I guess a more powerful server with higher memory and script execution times etc. might be able to cope, but I don’t have that at the moment and I’m looking for a work around. Is there a hook or filter I can remove that’ll let me replace bp_blogs_record_existing_blogs with my own function that could go through the users in chunks, maybe using wp_cron? It’s called from within bp_core_activation_notice which is called from the bp_admin_init hook so maybe that’s the one to replace?
If anyone has come up against this problem before and has a solution please let me know.
- The topic ‘Activating the Site Tracking component’ is closed to new replies.