Title: PHP warning with Site Kit
Last modified: November 16, 2022

---

# PHP warning with Site Kit

 *  Resolved [cozword65](https://wordpress.org/support/users/cozword65/)
 * (@cozword65)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-with-site-kit/)
 * How do I fix a PHP warning triggered by Site Kit? I recently installed Site Kit
   for new Analytics protocol. Immediately started getting a PHP warning in my error
   log:
 * Attempt to read property “post_type” on null in /home/i4jmmr7g7ujw/public_html/[
   mysite.com]/wp-includes/class-wp-query.php on line 4365
 * I de-activated Site Kit 12 hours ago, and the warnings stopped. I just re-activated,
   and the warnings started, again.
 * Not sure if this is relevant, but our site has no custom post type.

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

 *  Thread Starter [cozword65](https://wordpress.org/support/users/cozword65/)
 * (@cozword65)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-with-site-kit/#post-16206373)
 * Update: I subsequently updated to the new WordPress Version 6.1.1. At the moment,
   it appears the warnings are no longer being triggered.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-with-site-kit/#post-16207529)
 * [@cozword65](https://wordpress.org/support/users/cozword65/) Thank you for the
   update on this and glad to hear you no longer see the PHP errors. As a result,
   I will mark this topic as resolved but please get back in touch if you experience
   any further issues or have questions.

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

The topic ‘PHP warning with Site Kit’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-with-site-kit/#post-16207529)
 * Status: resolved