Title: PHP Warning
Last modified: September 11, 2024

---

# PHP Warning

 *  Resolved [Ben Roberts](https://wordpress.org/support/users/bouncingsprout/)
 * (@bouncingsprout)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-506/)
 * Hey everyone,
 * I’ve created a custom post type, and am receiving the following error every minute
   or so.
 * `PHP Warning: Attempt to read property "post_content" on null in XXX\wp-content\
   plugins\query-monitor\collectors\block_editor.php on line 138`
 * My hunch is that it is struggling to find the get_queried_object_id() on posts
   after the initial load. It can log get_post(get_queried_object_id()) on initial
   page load, but then can’t when your process() function is run. Do you have any
   idea what is causing that?
 * Thanks in advance,
 * Ben Roberts

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

 *  Thread Starter [Ben Roberts](https://wordpress.org/support/users/bouncingsprout/)
 * (@bouncingsprout)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-506/#post-18007677)
 * Fixed, by removing the reason for the heartbeat. Probably hasn’t resolved the
   issue, but at least it’s gone.
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-506/#post-18010788)
 * Thanks, it sounds like the error is occurring in the heartbeat functionality.
   I’ll take a look.

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/php-warning-506/#post-18010788)
 * Status: resolved