Title: error message in WP_DEBUG mode
Last modified: August 21, 2016

---

# error message in WP_DEBUG mode

 *  Resolved [Adrian](https://wordpress.org/support/users/adriandw/)
 * (@adriandw)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/error-message-in-wp_debug-mode/)
 * 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/](https://wordpress.org/plugins/wordfence/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * (@mmaunder)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/error-message-in-wp_debug-mode/#post-4944878)
 * 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.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/error-message-in-wp_debug-mode/#post-4944878)
 * Status: resolved