WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Organizer
[resolved] selective plugin loading settings not saving (33 posts)

  1. shism
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/plugin-organizer/

  2. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Are you running version 2.5.1? Are you disabling the plugins from the page edit screen or the url admin?

  3. shism
    Member
    Posted 1 year ago #

    I am running the latest version. I'm trying to disable the plugins from the page edit screen. When I try to add something to url admin I get: "There was a problem adding the URL".

  4. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Can you turn on WP_DEBUG to see if you are getting any errors? To turn it on open your wp-config.php file and set WP_DEBUG to true and you will see any errors. Let me know if you see any errors. Are you running on a windows server?

  5. shism
    Member
    Posted 1 year ago #

    Yes, I am on a windows server. I am getting this error that shows up when I go to Plugin Organizer > Settings:

    Notice: is_plugin_page is deprecated since version 3.1 with no alternative available. in C:\inetpub\wwwroot\wpcp\wp-includes\functions.php on line 2640 Notice: is_plugin_page is deprecated since version 3.1 with no alternative available. in C:\inetpub\wwwroot\wpcp\wp-includes\functions.php on line 2640 Notice: is_plugin_page is deprecated since version 3.1 with no alternative available. in C:\inetpub\wwwroot\wpcp\wp-includes\functions.php on line 2640 Notice: is_plugin_page is deprecated since version 3.1 with no alternative available. in C:\inetpub\wwwroot\wpcp\wp-includes\functions.php on line 2640

    Does the plugin work for the latest version of wordpress?

  6. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    I'm running the latest version of wordpress and it is working fine. That error isn't coming from plugin organizer. What errors do you get when you try to disable plugins?

  7. shism
    Member
    Posted 1 year ago #

    I get this :

    WordPress database error: [Table 'wordpress.wp_po_post_plugins' doesn't exist]
    SELECT * FROM wp_PO_post_plugins WHERE post_id = 34

  8. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Ok that is the problem. The user your web server is accessing the database as must not have rights to create tables. Run these sql commands on your database to create the tables needed.

    CREATE TABLE wp_PO_groups (
    group_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    group_name varchar(255) NOT NULL default '',
    group_members longtext DEFAULT 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 default '',
    disabled_plugins longtext NOT NULL default '',
    enabled_plugins longtext NOT NULL default '',
    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 default '',
    children int(1) NOT NULL default 0,
    disabled_plugins longtext NOT NULL default '',
    enabled_plugins longtext NOT NULL default '',
    PRIMARY KEY PO_id (url_id)
    );
  9. shism
    Member
    Posted 1 year ago #

    This is what it gives me now.

    Error Code: 1101. BLOB/TEXT column 'permalink' can't have a default value

  10. shism
    Member
    Posted 1 year ago #

    Would you know how to setup the user accessing the server to have writes to create tables?

  11. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    That is apparently a limitation on MySQL for windows. I can get rid of the default for this column but I will need some time to test my changes. I'm going to make the change to my database now and see if any problems arise. I should be able to get it all tested and released some time this afternoon. Maybe not until tomorrow.

  12. shism
    Member
    Posted 1 year ago #

    I modified mysql.ini and fixed the problem.

  13. shism
    Member
    Posted 1 year ago #

    Setting the sql-mode to sql-mode="MYSQL40" fixes the issue.

  14. prejudice
    Member
    Posted 1 year ago #

    rolled back to version 2.5, now it works. pls fix it when releasing 2.5.2. thanks!

  15. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Rolling back to version 2.5 wouldn't have fixed the problem with the default for BLOB/TEXT column in the database. That has been there since version 1. I've got version 2.5.2 ready to release but I'm not sure what problem you were having prejudice.

  16. prejudice
    Member
    Posted 1 year ago #

    sorry Jeff. the problem i had in 2.5.1 is a little bit diff. in Settings page, every time i select Enable in Selective Plugin Loading, then Save Settings. refresh the page, it becomes Disable... tried many times all the same. i'm not sure what's the issue there, so i rolled back to 2.5 and it works. thanks.

  17. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  18. prejudice
    Member
    Posted 1 year ago #

    oh, i see. so every time after upgrading, need to manually copy the PluginOrganizerMU.php to mu-plugins folder. copied and solved. thank you!

  19. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  20. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #


  21. shism
    Member
    Posted 1 year ago #

    This new version doesn't work for me anymore.

  22. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    version 2.5.4 doesnt work for you? What is the problem?

  23. shism
    Member
    Posted 1 year ago #

    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?

  24. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  25. loganl
    Member
    Posted 1 year ago #

    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.

  26. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  27. loganl
    Member
    Posted 1 year ago #

    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).

  28. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    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);
  29. loganl
    Member
    Posted 1 year ago #

    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 Successfully

  30. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    That 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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.