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/[]/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.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer