• 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. In the file /disable-comments/disable-comments.php on line 564, there should be a condition that checks if $post_id is int or maybe greater than 0.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Attempt to read property “post_type” on null’ is closed to new replies.