How to make plugins to be on ‘plugins’ folder to work from ‘mu-plugins’ folder?

Hi,

I installed several plugins to my WPMU 2.8.4 installation and some plugins were specifically for MU, and among the others some work from the "mu-plugins" folder even when they are supposed to be at the "plugins" folder, some plugins does not even show on the list, any reason?

Please advice, look forward for a solution

Thanks & Regards

  • Aaron
    • Ex Staff

    Plugins in the mu-plugins folder cannot be in a folder. Thats the main difference. To make regular plugins work there you have to pull the main PHP file out of the folder, and make sure there are no calls to the plugins folder in the source.

    Usually it is easier to activate the plugin sitewide in the plugins menu.

  • drmike
    • DEV MAN’s Mascot

    some plugins does not even show on the list,

    If by list you mean the plugins page, that’s the way it’s supposed to be. Only optional plugins (ie Ones that can be turned on and off by the blog admin) show up on that page.

    The main issue we run into is database creation as it doesn’t always work with plugins dropped into mu-plugins. We test first to see if the tables are created when a new blog is created and, if not, we strip out the database table creation code form the plugins and put it into our New Blog Default plugin. Again, testing as we go.

  • mikee17
    • Site Builder, Child of Zeus

    Thanks,

    @Aaron,

    currently the issue is with a paypal shoping cart plugin….there is only one php file in the plugin folder and the others are related css and image. I tried moving it out(updated paths) of the plugin folder and placed directly on the mu-plugins folder and still it does not show. :slight_frown:

    Regarding, sitewide activation it does not show too…thatz why I posted here.

    @drmike,

    Yes, I mean the plugin page. :slight_smile: There is no database creation.

  • mikee17
    • Site Builder, Child of Zeus

    Thanks @ Barry.

    I got the plugin working as I wanted with all your advices…

    I moved the whole plugin folder to mu-plugins folder, then moved the main PHP file out of the plugin folder and updated the paths…

    As plugins from mu-folder are active automatically they started to show on the required menu sections for ALL users.

    Thankz all once again. :slight_smile:

  • mikee17
    • Site Builder, Child of Zeus

    I was working on a shopping cart plugin and when moved to mu-plugins as described above(my previous post) it started to show its settings page under the menu it was previously(when under plugins folder)…only difference is that it did NOT list under the installed plugins list/page(for reason check Barry’s post above).

    I hope my understanding and thoughts are right.

    Thanks & Regards