WordPress.org

Ready to get started?Download WordPress

Forums

Exclude Pages
Plugin Stopped Working? (13 posts)

  1. sagive
    Member
    Posted 1 year ago #

    i use this plugin with every site i create...

    My newset site in on wordpress 3.5 (localhost on wamp).
    whenever i remove the checked from a page to exclude it
    and save the page the checked mark stays marked...

    Is this a wordpress version issuse?
    if so what should i change in the script?

    http://wordpress.org/extend/plugins/exclude-pages/

  2. Lilumi Odi
    Member
    Posted 1 year ago #

    I have this issue too.
    In my research I found that plugin updates option "ep_exclude_pages" with revision id not the true post id.

  3. A. Parikh
    Member
    Posted 1 year ago #

    Hi,
    I just upgraded to WP 3.5.1 and this plugin (which I love) stopped working. Any ideas when a new version of Exclude Pages will be available that is compatible with WP 3.5.1? It really is a lifesaver since we have many pages that we do not wish to be publicly accessible.

    Are there any workarounds to be able to make this plugin work with WP 3.5.1?

  4. rliverman
    Member
    Posted 1 year ago #

    I'm having this same issue and ran into the 'reset' happening when I have upwards of 125-150 pages marked as "Exclude".

    There is a note in the code that reads:

    // SWFIXME: Is reindexing the array going to create a memory optimisation problem for large arrays of WP post/page objects?

    Where the array of pages is being reindexed for neatness. I'm wondering if this 'times out' or causes some other issue and then the array of $pages is returned as blank and effectively resets.

    Again, I'm no PHP expert but it seems Simon might be onto something with his own note.

    Either way, until this addressed we have to stop using the plugin. I believe we are going to have to assign a meta_value to each page and then run a query before calling wp_list_pages and excluding those pages. Not ideal but until this 'reset' on large sites is fixed it will have to suffice.

  5. earnjam
    Member
    Posted 1 year ago #

    I was experiencing the same issues you all have mentioned...especially the original post by @sagive.

    I was able to fix that issue by changing the ep_set_option() function.

    I switched out the add_option() and delete_option() functions used there for update_option() and everything began working again. It seems that for whatever reason delete_option() was failing, rendering add_option() to do nothing since the option already had a value. update_option() seems like the better choice here because it will create the new value if it doesn't exist and update if it already does.

    I also made some other tweaks to the code, including preventing it from writing revision IDs into the excluded pages array and making the meta box show for all hierarchical post types. Let me know if anyone wants to see those updates.

  6. Lilumi Odi
    Member
    Posted 1 year ago #

    Thank you for the good news.
    Please share these changes on gist.github.com or elsewhere.

  7. sagive
    Member
    Posted 1 year ago #

    @earnjam
    thanks for sharing mate.

  8. earnjam
    Member
    Posted 1 year ago #

    I've forked jrf's updated version from the other thread and updated it with the changes I've made.
    You can see that version here:
    https://github.com/earnjam/WP-exclude-pages-plugin

    For just the changes to Simon's published version without the additional improvements made by jrf (quick edit checkbox and new column on table), you can get that here:
    https://gist.github.com/earnjam/5781358

  9. Lilumi Odi
    Member
    Posted 1 year ago #

    Thank you earnjam!

  10. jrf
    Member
    Posted 1 year ago #

    @earnjam, sounds like quite constructive changes. If you send me a pull request, I'll review and merge them ;-)

  11. earnjam
    Member
    Posted 1 year ago #

    Ok, request sent I think.

    I'm just starting to learn git, so bare with me if I've done something wrong!

  12. jrf
    Member
    Posted 1 year ago #

    ;-) I'll admit I'm not that advanced a user myself ;-)

  13. jrf
    Member
    Posted 1 year ago #

    To keep followers of this thread informed:

    Changed have been merged and enhanced into the original github fork: https://github.com/jrfnl/WP-exclude-pages-plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic