• Resolved cozword65

    (@cozword65)


    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

    (@cozword65)

    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

    (@adamdunnage)

    @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.