Support » Plugin: Exclude Pages » Plugin Stopped Working?

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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.

    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?

    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.

    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.

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

    thanks for sharing mate.

    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:

    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:

    Thank you earnjam!

    @earnjam, sounds like quite constructive changes. If you send me a pull request, I’ll review and merge them πŸ˜‰

    Ok, request sent I think.

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

    πŸ˜‰ I’ll admit I’m not that advanced a user myself πŸ˜‰

    To keep followers of this thread informed:

    Changed have been merged and enhanced into the original github fork:

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Plugin Stopped Working?’ is closed to new replies.