Title: Exclude posts not working anymore php error
Last modified: August 30, 2016

---

# Exclude posts not working anymore php error

 *  Resolved [Hannes Salen](https://wordpress.org/support/users/hannes-salen/)
 * (@hannes-salen)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/exclude-posts-not-working-anymore-php-error/)
 * When checking my php error log I found error below, this might be causing the
   exclude posts fucntion not to be working anymore. Any idea how I can solve this?
 * `[04-Jun-2015 15:14:24 UTC] PHP Fatal error: Cannot redeclare myoptionalmodules_destroy_content_view()(
   previously declared in C:\inetpub\wwwroot\europe\wp\wp-content\plugins\my-optional-
   modules\function.exclude.php:248) in C:\inetpub\wwwroot\europe\wp\wp-content\
   plugins\my-optional-modules\function.exclude.php on line 248`
 * [https://wordpress.org/plugins/my-optional-modules/](https://wordpress.org/plugins/my-optional-modules/)

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

 *  Plugin Author [f15d9f87d](https://wordpress.org/support/users/boyevul/)
 * (@boyevul)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/exclude-posts-not-working-anymore-php-error/#post-6225170)
 * Having trouble reproducing this on my test installation. What version are you
   using?
 *  Plugin Author [f15d9f87d](https://wordpress.org/support/users/boyevul/)
 * (@boyevul)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/exclude-posts-not-working-anymore-php-error/#post-6225266)
 * Temporary fix in place for exclude posts in 10.0.6 which should stop the redeclare
   errors.
 *  Thread Starter [Hannes Salen](https://wordpress.org/support/users/hannes-salen/)
 * (@hannes-salen)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/exclude-posts-not-working-anymore-php-error/#post-6225278)
 * I was using the last version of your plugin, I freshly installed it last week
   after removing it and removing all mom tables from my database.
 * The update seems to have fixed the exclude problem, but now if I exclude a category
   I only get post titles on my homepage and the excerpts are gone.
 *  Plugin Author [f15d9f87d](https://wordpress.org/support/users/boyevul/)
 * (@boyevul)
 * [11 years ago](https://wordpress.org/support/topic/exclude-posts-not-working-anymore-php-error/#post-6225409)
 * As this has been open for a month without my being able to reproduce the problem
   on my test installation, I am marking this as resolved.

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

The topic ‘Exclude posts not working anymore php error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/my-optional-modules.svg)
 * [My Optional Modules](https://wordpress.org/plugins/my-optional-modules/)
 * [Support Threads](https://wordpress.org/support/plugin/my-optional-modules/)
 * [Active Topics](https://wordpress.org/support/plugin/my-optional-modules/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-optional-modules/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-optional-modules/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [f15d9f87d](https://wordpress.org/support/users/boyevul/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/exclude-posts-not-working-anymore-php-error/#post-6225409)
 * Status: resolved