• Resolved bsavi

    (@bsavi)


    When you install the plugin on wordpress multisite and activate the plugin it breaks the network admin.

    Couple of different use cases.

      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.
      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://ww.wp.xz.cn/plugins/food-and-drink-menu/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@bsavi)

    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!

    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.

    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.