Title: Plugin Stopped Working?
Last modified: August 20, 2016

---

# Plugin Stopped Working?

 *  [sagive](https://wordpress.org/support/users/sagive/)
 * (@sagive)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/)
 * 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/](http://wordpress.org/extend/plugins/exclude-pages/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Lilumi Odi](https://wordpress.org/support/users/lilumi/)
 * (@lilumi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331766)
 * 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.
 *  [A. Parikh](https://wordpress.org/support/users/a-parikh/)
 * (@a-parikh)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331803)
 * 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?
 *  [rliverman](https://wordpress.org/support/users/rliverman/)
 * (@rliverman)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331804)
 * 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.
 *  [Will Earnhardt](https://wordpress.org/support/users/earnjam/)
 * (@earnjam)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331812)
 * I was experiencing the same issues you all have mentioned…especially the original
   post by [@sagive](https://wordpress.org/support/users/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.
 *  [Lilumi Odi](https://wordpress.org/support/users/lilumi/)
 * (@lilumi)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331813)
 * Thank you for the good news.
    Please share these changes on gist.github.com or
   elsewhere.
 *  Thread Starter [sagive](https://wordpress.org/support/users/sagive/)
 * (@sagive)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331814)
 * [@earnjam](https://wordpress.org/support/users/earnjam/)
    thanks for sharing 
   mate.
 *  [Will Earnhardt](https://wordpress.org/support/users/earnjam/)
 * (@earnjam)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331815)
 * 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](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](https://gist.github.com/earnjam/5781358)
 *  [Lilumi Odi](https://wordpress.org/support/users/lilumi/)
 * (@lilumi)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331816)
 * Thank you earnjam!
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331817)
 * [@earnjam](https://wordpress.org/support/users/earnjam/), sounds like quite constructive
   changes. If you send me a pull request, I’ll review and merge them 😉
 *  [Will Earnhardt](https://wordpress.org/support/users/earnjam/)
 * (@earnjam)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331818)
 * Ok, request sent I think.
 * I’m just starting to learn git, so bare with me if I’ve done something wrong!
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331819)
 * 😉 I’ll admit I’m not that advanced a user myself 😉
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331820)
 * 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](https://github.com/jrfnl/WP-exclude-pages-plugin)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Plugin Stopped Working?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/exclude-pages.svg)
 * [Exclude Pages](https://wordpress.org/plugins/exclude-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exclude-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exclude-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/exclude-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exclude-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exclude-pages/reviews/)

## Tags

 * [checked](https://wordpress.org/support/topic-tag/checked/)
 * [unchecked](https://wordpress.org/support/topic-tag/unchecked/)

 * 12 replies
 * 6 participants
 * Last reply from: [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-stopped-working-6/#post-3331820)
 * Status: not resolved