Title: PHP errors in wp-includes
Last modified: December 28, 2021

---

# PHP errors in wp-includes

 *  [iobaid](https://wordpress.org/support/users/iobaid/)
 * (@iobaid)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-errors-in-wp-includes/)
 * Hello there,
 * The few errors below comes everyday, how ca i fix these? reinstall didn’t do 
   the trick.
 *     ```
       [28-Dec-2021 19:15:38 UTC] PHP Warning:  Attempt to read property "post_type" on null in /home/wp-includes/class-wp-query.php on line 4196
       [28-Dec-2021 19:15:45 UTC] PHP Warning:  Attempt to read property "comment_ID" on null in /home/wp-includes/comment-template.php on line 677
       [28-Dec-2021 19:15:45 UTC] PHP Warning:  Attempt to read property "user_id" on null in /home/wp-includes/comment-template.php on line 28
       [28-Dec-2021 19:15:45 UTC] PHP Warning:  Attempt to read property "comment_ID" on null in /home/wp-includes/comment-template.php on line 48
       ```
   
 * should i be concerned?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Vijay Hardaha](https://wordpress.org/support/users/vijayhardaha/)
 * (@vijayhardaha)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-errors-in-wp-includes/#post-15203002)
 * Seems like, You have a problem with 1 of the plugin or themes you’re using. You
   need to first switch the theme and see if the warning goes away, if not then 
   switch back to orig. theme and deactivate plugins 1 by 1 and see which plugin
   stops those warnings.
 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-errors-in-wp-includes/#post-15207746)
 * try going to tools and checking site health to see if gives you any more information.
   All the files you listed are common include files with WordPress. If you think
   it is a plugin just disable all the plugins and see if it goes away. If it does
   reenable them one at a time until you see the message again. You should be able
   to figure out which one it is.
    If you have edited any files it could be something
   that was added by mistake. I have placed stray tick marks or characters by accident
   in the code and gotten similar errors. Good luck in finding it.
 *  [isabel104](https://wordpress.org/support/users/isabel104/)
 * (@isabel104)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-in-wp-includes/#post-15376478)
 * The last 3 error lines (the ones referencing **comment-template.php**) seem to
   be a WordPress core bug. Here is the ticket: [https://core.trac.wordpress.org/ticket/54607](https://core.trac.wordpress.org/ticket/54607).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP errors in wp-includes’ is closed to new replies.

## Tags

 * [log](https://wordpress.org/support/topic-tag/log/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [isabel104](https://wordpress.org/support/users/isabel104/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-in-wp-includes/#post-15376478)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
