Title: Breaks on network activation (Multisite)
Last modified: August 21, 2016

---

# Breaks on network activation (Multisite)

 *  Resolved [bsavi](https://wordpress.org/support/users/bsavi/)
 * (@bsavi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/breaks-on-network-activation-multisite/)
 * When you install the plugin on wordpress multisite and activate the plugin it
   breaks the network admin.
 * Couple of different use cases.
    1.  you activate the plugin from the child site of the multisite setup. Plugin 
       works, everything looks great. When you go to network admin you get a white 
       screen. When you turn on errors you see `Fatal error: Call to undefined function
       wp_get_current_user() in wp-includes/capabilities.php on line 1342`. When you
       deactivate the plugin the network admin comes back.
 *  1. If you try to activate the plugin from the network admin it gives you an error
       that states `Plugin could not be activated because it triggered a fatal error.`
 * At least the second case stops the plugin from activating.
 * [https://wordpress.org/plugins/food-and-drink-menu/](https://wordpress.org/plugins/food-and-drink-menu/)

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

 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/breaks-on-network-activation-multisite/#post-4765752)
 * Damn, that’s no good! I have never set up a MU site so I can’t say what might
   be causing this. I’ll try to get one set up soon and see if I can reproduce this
   error.
 * Thanks for reporting!
 *  Thread Starter [bsavi](https://wordpress.org/support/users/bsavi/)
 * (@bsavi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/breaks-on-network-activation-multisite/#post-4765753)
 * Hey Nate,
 * Thanks for getting back. I think one of my colleges also sent a message via email.
   Sorry for the double post. Let me know if there is anything I can do to help.
 * Thanks,
    Brad
 * P.s Great plugin!
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/breaks-on-network-activation-multisite/#post-4765832)
 * Ok, some good news and some bad news. The good news is that I was able to replicate
   and fix the error you experienced when activating the plugin from the network
   admin. I’ve pushed an update to the plugin (version 1.2.1). It seems that when
   including files with require_once(), I need to use the full path to the plugin.
 * The bad news is that I was unable to reproduce the error with your first use 
   case. Here’s what I did:
 * 1. Install Food and Drink Menu version 1.2 (the version you were likely using).
 * 2. Browse to the child site and activate the plugin from the child site.
 * 3. Go back to the dashboard of the network admin.
 * I expected a big error in step 3, but there was no error. I only received error
   in the network admin when I activated the plugin across the network (Network 
   Activate). Is that maybe what happened for you? Or did you definitely get the
   Fatal Error before the plugin was activated across the whole network?
 * Is your site live? If not, would you be willing to test the new version and let
   me know if you still get the problem? If the problem still occurs, can you let
   me know all the plugins you have activated and any special settings you might
   be using? I will use that info to try and replicate the problem so I can fix 
   it.
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/breaks-on-network-activation-multisite/#post-4766050)
 * After some follow-up over email this has been resolved and the latest version
   of the plugin is working for them in a multisite environment. Hooray!

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

The topic ‘Breaks on network activation (Multisite)’ is closed to new replies.

 * ![](https://ps.w.org/food-and-drink-menu/assets/icon-128x128.png?rev=2205559)
 * [Five Star Restaurant Menu and Food Ordering](https://wordpress.org/plugins/food-and-drink-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/food-and-drink-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/food-and-drink-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/food-and-drink-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/food-and-drink-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/food-and-drink-menu/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [NateWr](https://wordpress.org/support/users/natewr/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/breaks-on-network-activation-multisite/#post-4766050)
 * Status: resolved