• Resolved Adrian

    (@adriandw)


    I had set WP Debug mode on to try to solve a different problem.

    Now when I activate the falcon engine or basic caching on the latest Wordfence (5.0.8), this error message is displayed on all pages (whether logged in or not):

    Notice: is_404 was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /.../htdocs/wp-includes/functions.php on line 3245

    Obviously I can disable debug mode to suppress the message.
    But is this indicative of an error in Wordfence since it doesn’t occur when caching is inactive?

    https://wordpress.org/plugins/wordfence/

Viewing 1 replies (of 1 total)
  • Plugin Author Mark Maunder

    (@mmaunder)

    Hi Adrian,

    Thanks for the bug report. We’ve found the issue and fixed it. The problem is that one of our functions that checks if something can be cached calls this function when it shouldn’t. That’s not usually a problem but if you enable debugging WordPress debugging complains about it. So we’ve removed the code because it actually doesn’t have any effect and we do the same check later on in the correct execution order.

    The fix will be in the next release.

    Regards,

    Mark.

Viewing 1 replies (of 1 total)

The topic ‘error message in WP_DEBUG mode’ is closed to new replies.