Title: Undefined $post variable Warning
Last modified: August 21, 2024

---

# Undefined $post variable Warning

 *  [WP CMS Ninja](https://wordpress.org/support/users/billiardgreg/)
 * (@billiardgreg)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/undefined-post-variable-warning/)
 * I am seeing the following PHP errors when PHP is set to PHP 8.1.
 * [21-Aug-2024 15:09:28 UTC] PHP Warning: Undefined variable $post in /home/domain/
   public_html/wp-content/plugins/ajax-filter-posts/ajax-filter-posts.php on line
   309
   [21-Aug-2024 15:09:28 UTC] PHP Warning: Attempt to read property “ID” on 
   null in /home/domain/public_html/wp-content/plugins/ajax-filter-posts/ajax-filter-
   posts.php on line 309

Viewing 1 replies (of 1 total)

 *  Plugin Author [AddonMaster](https://wordpress.org/support/users/addonmaster/)
 * (@addonmaster)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/undefined-post-variable-warning/#post-18006142)
 * Thanks for reporting. We will check.

Viewing 1 replies (of 1 total)

The topic ‘Undefined $post variable Warning’ is closed to new replies.

 * ![](https://ps.w.org/ajax-filter-posts/assets/icon-256x256.png?rev=3117575)
 * [Post Grid Master — Post Grids & AJAX Filters](https://wordpress.org/plugins/ajax-filter-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-filter-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-filter-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-filter-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-filter-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-filter-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [AddonMaster](https://wordpress.org/support/users/addonmaster/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/undefined-post-variable-warning/#post-18006142)
 * Status: not resolved