• HKP

    (@hiskingdomprophecy)


    Hi Folks,
    I have just found that I am getting countless of these two error messages since I update to WP 7.0

    These are from my debug.log:

    [27-May-2026 07:11:08 UTC] PHP Notice: Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="proxy.php?url=https%3A%2F%2Fdeveloper.wordpress.org%2Fadvanced-administration%2Fdebug%2Fdebug-wordpress%2F">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wp-includes/functions.php on line 6170

    [27-May-2026 07:11:08 UTC] PHP Notice: Function is_404 was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="proxy.php?url=https%3A%2F%2Fdeveloper.wordpress.org%2Fadvanced-administration%2Fdebug%2Fdebug-wordpress%2F">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /xxx/wp-includes/functions.php on line 6170

    Regards and thanks,
    Angus

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    These notices are simply the result of a plugin or your theme incorrectly calling WordPress’s own functions. Unfortunately, the exact source of the call cannot be identified in these PHP notices.

    I would recommend that you deactivate your plugins one by one to determine which one is causing the issue. Once you’ve identified the culprit, contact its support team.

    If it’s not a plugin, it could be your theme. You can also switch themes as a test to rule it out as the cause.

    If you don’t want to perform these tests on a live site, you can use a staging environment instead. Either your hosting provider offers one, or you can use this plugin: https://wordpress.org/plugins/wp-staging/

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.