Advanced Issue / help request
-
Hello Jeff, I hope this finds you doing well…
I have an advanced Multi-Network, Network of ‘Multi-Site Networks’ and I have been plagued with an issue for over two years that I just determined is centered around my love of this plugin.
Unlike a standard Multisite system, a Multi-Network Multisite system isn’t limited to just ‘blog_id’, it also has an additional designater; ‘site_id’.
The following screen-shot should help you understand this structure better.
Exhibit A – https://imageshack.com/a/img923/4930/piNVcl.pngWith that said, the following scenario will help illustrate my dilemma.
The problem arises when I need to or want to Network activate a new plugin or when I deactivate an existing plugin on one of my ‘Networks’ once they have been setup and each contain their own set of sub-sites. From what I can tell, the script in the mu-plugins folder seeks to write / rewrite to the ‘active_sitewide_plugins’ database table in order to accommodate the changes so you can update your settings within the P.O. interface. Which brings me to the problem… in my database there are several ‘active_sitewide_plugins’ tables only they each have an additional field, ‘site_id’ for filtering. Exhibit B – https://imageshack.com/a/img923/1499/P4IEwH.png
So, when I activate a new ‘Network Plugin’ it tries to write to each ‘active_sitewide_plugins’ but instead of writing to every table it actually ends up activating the plugin on (every subsite, every network) as if it were activated from each sites standard admin dashboard. Yea, it’s a mess ??
So, I believe what I need is simple (famous last words). When updating, we need a small function that basically says something like; if update is from (site_id)? edit ‘active_sitewide_plugins’ with/on ‘site_id’?
I’m not a beginner when it comes to code but I’m barely intermediate when it comes to not only writing a function like this correctly but more importantly, knowing where to put it or what to apply it to. As this is most likely outside of your normal ‘scope of support’, I’d be very happy to make a respectable donation to your cause. This plugin is a must use on our system(s) and up until now we have either had to live/stick with our initial activation’s or painstakingly go through as many as 60-70 sites at a time in the middle of the night deactivating the aftermath ??
Any assistance you can offer would be appreciated and if you’re able to come up with a solution, we would be happy to add it to whatever file necessary and test the junk out of it. We are backup monkeys so we can break the system as many times as it takes to reach success.
Have a great day and thanks in advance ??
- The topic ‘Advanced Issue / help request’ is closed to new replies.