Attempt to read property “post_type” on null
-
Hi.
Some pages in WordPress do not have an ID, like dynamically generated pages by plugins and in themes. So when this occurs, then the global $post variable will not return an ID. CorePlugin.php on line 208, there should be a condition that checks if $post_id is int or maybe greater than 0.
- The topic ‘Attempt to read property “post_type” on null’ is closed to new replies.