WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Organizer
[resolved] Issue with the settings page (8 posts)

  1. kisshomaru
    Member
    Posted 8 months ago #

    The following appears if I disable all options (including post/page) under Custom Post Type Support:
    PHP Warning: array_diff() [0function.array-diff0]: Argument #1 is not an array in /home/xxx/public_html/x/wp-content/plugins/plugin-organizer/lib/PluginOrganizer.class.php on line 938
    Page appears to save fine, however, revisiting the PO Settings page will display nothing on the CPT Support section afterwards.

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

  2. Jeff Sterup
    Member
    Plugin Author

    Posted 8 months ago #

    Ahhhh! That is because you have done something you shouldn't do. You deleted the option from the database and then didn't reactivate the plugin. The custom post types are set during activation if there aren't any already saved. I should also probably check to make sure that it is set before comparing it to something but it shouldn't ever be empty unless you do what you did and manually delete the options after activation.

  3. kisshomaru
    Member
    Posted 8 months ago #

    Hmm. But that is the thing. I did re install the plugin from scratch. Then when I got in to settings, posts/pages were there checked, so I removed, saved, then the issue appeared.

  4. Jeff Sterup
    Member
    Plugin Author

    Posted 8 months ago #

    Ok so what you need to do is uncheck the box to keep your settings when you deactivate. Then deactivate the plugin. This should remove everything. Then reactivate and it should truly be a fresh install.

  5. kisshomaru
    Member
    Posted 8 months ago #

    I believe this is a bug. I did that. The field in DB is populated properly if I modify something after I enable the plugin.
    But, if I remove every check box from there and save, the db field is complete empty and the CPTs are not displayed anymore at all (upon refresh of the settings page - immediately after save it looks ok) (should be displayed as unchecked).

  6. Jeff Sterup
    Member
    Plugin Author

    Posted 8 months ago #

    Sorry I misunderstood what you were saying. It appears that is a bug. I will get a new version out with that fixed. Ive already fixed it on my site.

  7. Jeff Sterup
    Member
    Plugin Author

    Posted 8 months ago #

    Install version 3.2.2. The bug should be fixed.

  8. kisshomaru
    Member
    Posted 8 months ago #

    Solved in 3.2.2. Thank You Jeff.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.