Title: PHP Warning: Undefined array key &#8220;terms&#8221;
Last modified: March 17, 2023

---

# PHP Warning: Undefined array key “terms”

 *  Resolved [nathaningram](https://wordpress.org/support/users/nathaningram/)
 * (@nathaningram)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-terms/)
 * Hi folks! We’ve been having problems with PublishPress Future executing scheduled
   actions on one of our clients’ websites.
 * _An example of the issues we are seeing:A post was supposed to expire last week,
   but did not. We are certain that expiration was enabled and the date set. Looking
   at the post now, the expiration option is unchecked.
 * We have run through the “[Troubleshooting in PublishPress](https://publishpress.com/knowledge-base/troubleshooting-unpublish/)”
   link that you’ve shared on other threads and no issues with anything there.
 * We did find this error multiple times in our error log around the time when the
   actions should have been executed:
 *     ```wp-block-code
       PHP Warning: Undefined array key "terms" in /…/public_html/wp-content/plugins/post-expirator/src/Views/classic-metabox.php on line 143
       ```
   
 * Could that be the source of the problem?

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

 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-terms/#post-16576653)
 * Hi [@nathaningram](https://wordpress.org/support/users/nathaningram/)
 * I dont think the warning is related. We will fix the warning in the next release.
 * For your issue, you can try to create test post and try to expire it. Monitor
   it with WP Crontrol plugin to see if the cron is fired correctly or no.
 * Thanks,
 *  [dani31bu](https://wordpress.org/support/users/dani31bu/)
 * (@dani31bu)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-terms/#post-16624290)
 * Hi, same problem for me. When a post to any taxonomy is expired, it shows the
   PHP warning. On the default (draft, private, trash, etc.) there is no warning.
   
   But it seems to work anyway.
 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-terms/#post-16624795)
 * [@dani31bu](https://wordpress.org/support/users/dani31bu/) We will fix the warning
   in the next release. Thanks for your patience

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

The topic ‘PHP Warning: Undefined array key “terms”’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3569472)
 * [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/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 3 participants
 * Last reply from: [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-terms/#post-16624795)
 * Status: resolved