• Resolved kisshomaru

    (@kisshomaru)


    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.

    Thread Starter kisshomaru

    (@kisshomaru)

    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.

    Thread Starter kisshomaru

    (@kisshomaru)

    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.

    Thread Starter kisshomaru

    (@kisshomaru)

    Solved in 3.2.2. Thank You Jeff.

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