• Resolved Ben Roberts

    (@bouncingsprout)


    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

    (@bouncingsprout)

    Fixed, by removing the reason for the heartbeat. Probably hasn’t resolved the issue, but at least it’s gone.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    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)
  • You must be logged in to reply to this topic.