WordPress.org

Support

Support » Plugins and Hacks » Plugin Organizer » [Resolved] Issue with the settings page

[Resolved] Issue with the settings page

  • 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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Sterup

    @foomagoo

    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.

    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.

    Plugin Author Jeff Sterup

    @foomagoo

    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.

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

    Plugin Author Jeff Sterup

    @foomagoo

    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.

    Plugin Author Jeff Sterup

    @foomagoo

    Install version 3.2.2. The bug should be fixed.

    Solved in 3.2.2. Thank You Jeff.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Issue with the settings page’ is closed to new replies.
Skip to toolbar