Title: Undefined variable: category
Last modified: August 21, 2016

---

# Undefined variable: category

 *  [rubenvandeput](https://wordpress.org/support/users/rubenvandeput/)
 * (@rubenvandeput)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-category-1/)
 * Hi there,
 * When I try to expire by changing/adding/removing a category I get following errors:(
   just by selecting the options from the dropdown error)
 * Notice: Undefined variable: category in …/wp-content/plugins/post-expirator/post-
   expirator.php on line 1286
 * Notice: Trying to get property of non-object in …/wp-content/plugins/post-expirator/
   post-expirator.php on line 1286
 * Notice: Undefined variable: category in …/wp-content/plugins/post-expirator/post-
   expirator.php on line 1287
 * Notice: Trying to get property of non-object in …/wp-content/plugins/post-expirator/
   post-expirator.php on line 1287
 * I get around 200 of those errors.
    The same errors appear on ‘Post Expirator 
   Options’ page at ‘Default Expiration Category:’.
 * Running WP 3.8.1
 * Thanks for the help.
 * [https://wordpress.org/plugins/post-expirator/](https://wordpress.org/plugins/post-expirator/)

The topic ‘Undefined variable: category’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rubenvandeput](https://wordpress.org/support/users/rubenvandeput/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/undefined-variable-category-1/)
 * Status: not resolved