selective plugin loading settings not saving
-
I’ve enabled selective plugin loading but when I try to enable or disable a plugin on a specific page, it doesn’t save the setting. Can you please help me?
Thanks
-
That is actually a built in feature to stop you from running an old version of the MU plugin and risk messing something up. Upgrade to version 2.5.1. In the plugin-organizer/lib folder there is a file named PluginOrganizerMU.php. Copy that file to the wp-content/mu-plugins folder if it isnt copying itself. You’ll see that under the Must-Use section of the plugins page the version of Plugin Organizer MU is 2.5. The versions have to match or it will disable itself. After you copy the file it will show version 2.5.1.
oh, i see. so every time after upgrading, need to manually copy the PluginOrganizerMU.php to mu-plugins folder. copied and solved. thank you!
I have released version 2.5.2 that creates the database tables without using a default value. This should correct the problem you were having.
This new version doesn’t work for me anymore.
version 2.5.4 doesnt work for you? What is the problem?
I am currently testing out a new host. websynthesis.com
For some reason, on the new host it doesn’t work correctly. I don’t get any errors at all, it just doesn’t seem to be blocking those plugins on the pages I select. What would be a reason for it not to block a plugin?
The MU plugin may not be in place. Or the option to disable plugins is turned off. Go to the wordpress plugins page in the admin. Go to the Must Use plugins and see that the version for Plugin Organizer MU is the same as Plugin Organizer. If you dont show any Must Use plugins then you need to create the mu-plugins folder at wp-content/mu-plugins. Then take the file PluginOrganizerMU.class.php from the lib folder and put it in that mu-plugins folder.
man this looks like a great solution—although I’m getting the same error. I’ve deactivated all plugins, turned debug mode on, and I’m not getting any errors. The selective plugin settings, however, still aren’t saving.
logan, are you running version 2.5.5? When you go to the settings page is it telling you that you are missing a database table?
thanks for the quick response! I am running 2.5.5—i don’t get any errors on the settings page (although i had a couple errors until i deactivated the conflicting plugins).
Do you have the tables in your database? The table names are wp_PO_post_plugins, wp_PO_groups, and wp_PO_url_plugins. If you don’t then please run these sql commands on your database and let me know what errors you get.
CREATE TABLE wp_PO_groups ( group_id bigint(20) unsigned NOT NULL AUTO_INCREMENT, group_name varchar(255) NOT NULL default '', group_members longtext NOT NULL, PRIMARY KEY PO_group_id (group_id); CREATE TABLE wp_PO_post_plugins ( post_id bigint(20) unsigned NOT NULL, permalink longtext NOT NULL, disabled_plugins longtext NOT NULL, enabled_plugins longtext NOT NULL, PRIMARY KEY PO_post_id (post_id); CREATE TABLE wp_PO_url_plugins ( url_id bigint(20) unsigned NOT NULL auto_increment, permalink longtext NOT NULL, children int(1) NOT NULL default 0, disabled_plugins longtext NOT NULL, enabled_plugins longtext NOT NULL, PRIMARY KEY PO_id (url_id);Thanks Jeff—I’m using a database plugin, and when I run the query I get this:
CREATE TABLE wp_PO_groups ( group_id bigint(20) unsigned NOT NULL AUTO_INCREMENT, group_name varchar(255) NOT NULL default ”, group_members longtext NOT NULL, PRIMARY KEY PO_group_id (group_id);
CREATE TABLE wp_PO_post_plugins ( post_id bigint(20) unsigned NOT NULL, permalink longtext NOT NULL, disabled_plugins longtext NOT NULL,enabled_plugins longtext NOT NULL, PRIMARY KEY PO_post_id (post_id);
CREATE TABLE wp_PO_url_plugins ( url_id bigint(20) unsigned NOT NULL auto_increment, permalink longtext NOT NULL, children int(1) NOT NULL default 0, disabled_plugins longtext NOT NULL, enabled_plugins longtext NOT NULL, PRIMARY KEY PO_id (url_id);
0/3 Query(s) Executed SuccessfullyThat tells me that there were errors but not what the error is. Can you log into your database and check to see if the tables are there and if not run the queries so you can get an error message?
thanks for your patience Jeff—i ran the query, and i got this error:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘; CREATE TABLE wp_PO_post_plugins ( post_id bigint(20) unsigned NOT NULL, p’ at line 5
The topic ‘selective plugin loading settings not saving’ is closed to new replies.