Title: Plugin can&#8217;t be activated
Last modified: April 26, 2023

---

# Plugin can’t be activated

 *  Resolved [papman](https://wordpress.org/support/users/papman/)
 * (@papman)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/plugin-cant-be-activated-7/)
 * **Fatal error**: Uncaught Error: Call to undefined function restore_current_blog()
   in ../wp-content/plugins/buddypress-group-email-subscription/bp-activity-subscription-
   digest.php:815 Stack trace: #0 ../wp-content/plugins/buddypress-group-email-subscription/
   bp-activity-subscription.php(79): ass_set_daily_digest_time(’05’, ’00’) #1 ../
   wp-includes/class-wp-hook.php(308): activitysub_setup_defaults(”) #2 ../wp-includes/
   class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #3 ../wp-includes/plugin.
   php(517): WP_Hook->do_action(Array) #4 ../wp-admin/plugins.php(194): do_action(‘
   activate_buddyp…’) #5 {main} thrown in **../wp-content/plugins/buddypress-group-
   email-subscription/bp-activity-subscription-digest.php** on line **815**
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-cant-be-activated-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/plugin-cant-be-activated-7/#post-16689163)
 * Thanks for the report. I’ve described the problem and put a fix in place at [https://github.com/boonebgorges/buddypress-group-email-subscription/issues/236](https://github.com/boonebgorges/buddypress-group-email-subscription/issues/236).
   You can manually patch your installation if you’d prefer not to wait for the 
   4.0.5 release.
 *  Thread Starter [papman](https://wordpress.org/support/users/papman/)
 * (@papman)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/plugin-cant-be-activated-7/#post-16689265)
 * So I changed bp-activity-subscription-digest.php and get now:
 * **Fatal error**: Uncaught Error: Call to undefined function restore_current_blog()
   in ../wp-content/plugins/buddypress-group-email-subscription/bp-activity-subscription-
   digest.php:856 Stack trace: #0 ../wp-content/plugins/buddypress-group-email-subscription/
   bp-activity-subscription.php(80): ass_set_weekly_digest_time(‘4’) #1 ../wp-includes/
   class-wp-hook.php(308): activitysub_setup_defaults(”) #2 ../wp-includes/class-
   wp-hook.php(332): WP_Hook->apply_filters(”, Array) #3 ../wp-includes/plugin.php(
   517): WP_Hook->do_action(Array) #4 ../wp-admin/plugins.php(194): do_action(‘activate_buddyp…’)#
   5 {main} thrown in **/../wp-content/plugins/buddypress-group-email-subscription/
   bp-activity-subscription-digest.php** on line **856**
 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/plugin-cant-be-activated-7/#post-16689384)
 * Sorry, I guess there was another instance of the same problem elsewhere in the
   plugin. I’ve just pushed up another change. [https://github.com/boonebgorges/buddypress-group-email-subscription/commit/c39a883cd2444638158683a008ef85fbbe1b8356](https://github.com/boonebgorges/buddypress-group-email-subscription/commit/c39a883cd2444638158683a008ef85fbbe1b8356)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin can’t be activated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-group-email-subscription.
   svg)
 * [BuddyPress Group Email Subscription](https://wordpress.org/plugins/buddypress-group-email-subscription/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-group-email-subscription/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-group-email-subscription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-group-email-subscription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-group-email-subscription/reviews/)

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * 3 replies
 * 2 participants
 * Last reply from: [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/plugin-cant-be-activated-7/#post-16689384)
 * Status: resolved