PHP Warning
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.