• Running on PHP 8.2 and have noticed that we keep getting the same PHP warning in our error logs each day.

    PHP Warning: Attempt to read property “comment_count” on null in /wp-includes/general-template.php on line 3195

    The above error normally occurs about 3 or 4 times each day, and not sure if this error relates to a WordPress core issue, or whether it could be something related to one of our plugins?

    Have also tried the website on lower versions of PHP, PHP 8.1 and PHP 8.0, and the warning still exists.

    If anybody has any ideas or suggestions, that would be very helpful.

    Kind Regards,

    Andy

Viewing 1 replies (of 1 total)
  • This can also be caused by an interaction with a plug-in or your theme, or by faulty data. Try switching to a standard theme for a test. Does it still occur? Try deactivating all plugins. If it doesn’t occur anymore, activate the plugins step by step until it happens again.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning: Attempt to read property “comment_count” on null in’ is closed to new replies.