Title: WP_Debug notice &#8212; doing_it_wrong()
Last modified: May 15, 2018

---

# WP_Debug notice — doing_it_wrong()

 *  Resolved [Mantap](https://wordpress.org/support/users/mantap/)
 * (@mantap)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/wp_debug-notice-doing_it_wrong/)
 * Hi, thanks for the plugin. I’m building a site using Astra child theme, Elementor&
   Header Footer Elementor on WordPress 4.9.5, locally on xampp on mac os. This 
   has been great — until I activated Ninja Forms, then I immediately get a WP_Debug
   notice:
 * Notice: is_search was called incorrectly. Conditional query tags do not work 
   before the query is run.
 * To troubleshoot, I activated the default 2017 theme and deactivated all plugins,
   then reactivated one at a time. The problem appears to be a combination of Ninja
   Forms 3.2.27, Elementor 2.0.11 and Header Footer Elementor 1.0.12. All three 
   need to be active to cause the error.
 * I also tried activating the parent Astra theme, problem persists.
 * Cheers

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Brainstorm Force](https://wordpress.org/support/users/brainstormforce/)
 * (@brainstormforce)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/wp_debug-notice-doing_it_wrong/#post-10281714)
 * Does the problem disappear if you deactivate our plugin? It will be great if 
   you could get in touch from our website and lodge a support ticket, so we can
   take a closer look for you: [https://wpastra.com/contact](https://wpastra.com/contact)
 *  Thread Starter [Mantap](https://wordpress.org/support/users/mantap/)
 * (@mantap)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/wp_debug-notice-doing_it_wrong/#post-10281849)
 * Hi, thanks for the response — I’ll lodge a support ticket as requested. Yes, 
   the problem disappears if any of those three plugins are deactivated. I was using
   Elementor and Header Footer Elementor fine until I installed Ninja Forms, so 
   seems to be some kind of interaction between the plugins.
 *  [Nikhil Chavan](https://wordpress.org/support/users/nikschavan/)
 * (@nikschavan)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/wp_debug-notice-doing_it_wrong/#post-10306735)
 * Hello [@mantap](https://wordpress.org/support/users/mantap/),
 * We have just pushed out an updated version v1.0.13 which should fix this warning
   appearing when WP_DEBUG is enabled.
 *  Thread Starter [Mantap](https://wordpress.org/support/users/mantap/)
 * (@mantap)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/wp_debug-notice-doing_it_wrong/#post-10307720)
 * Great, thanks for fixing that so quickly!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP_Debug notice — doing_it_wrong()’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-elementor/assets/icon-256x256.gif?rev=3278750)
 * [Ultimate Addons for Elementor](https://wordpress.org/plugins/header-footer-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-elementor/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mantap](https://wordpress.org/support/users/mantap/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/wp_debug-notice-doing_it_wrong/#post-10307720)
 * Status: resolved