Title: PHP 8 Warning
Last modified: December 4, 2022

---

# PHP 8 Warning

 *  Resolved [efox](https://wordpress.org/support/users/foxylearning/)
 * (@foxylearning)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-8-warning-15/)
 * After upgrading my site to PHP 8, I’m seeing tons of these PHP warnings in my
   site logs:
 * `[STDERR] PHP Warning: Attempt to read property "ID" on null in /var/www/mysite.
   com/htdocs/wp-content/plugins/post-expirator/legacy/functions.php on line 791`
 * This hasn’t impacted the functionality of the plugin that I’ve noticed yet, but
   it would be nice to not have my error logs filled with these notices. 🙂

Viewing 1 replies (of 1 total)

 *  Plugin Author [andergmartins](https://wordpress.org/support/users/andergmartins/)
 * (@andergmartins)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-8-warning-15/#post-16261968)
 * Hi [@foxylearning](https://wordpress.org/support/users/foxylearning/)
 * Thanks for reporting the issue. That can happens when the filter `the_content`
   is called by a third party plugin when not in the main loop.
 * We opened a new issue here: [https://github.com/publishpress/PublishPress-Future/issues/313](https://github.com/publishpress/PublishPress-Future/issues/313)
 * Feel free to follow the progress there, we are planning to release the fix on
   the next release.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 Warning’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [andergmartins](https://wordpress.org/support/users/andergmartins/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-8-warning-15/#post-16261968)
 * Status: resolved