Title: Your plugin causing a warning notice
Last modified: January 15, 2022

---

# Your plugin causing a warning notice

 *  Resolved [Ahmed Jadelrab](https://wordpress.org/support/users/jadolyo/)
 * (@jadolyo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/your-plugin-causing-a-warning-notice/)
 * Hello,
 * I am debugging my website on the staging domain and I found that your plugin 
   causing the below warning notice, any help to fix that warning?
 * `Notice: is_singular 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.0.)
   in /wp-includes/functions.php on line 5663`

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

 *  Plugin Author [Shelf Planner](https://wordpress.org/support/users/shelfplanner/)
 * (@shelfplanner)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/your-plugin-causing-a-warning-notice/#post-15267137)
 * This issue should have been resolved with the latest release.
 *  Thread Starter [Ahmed Jadelrab](https://wordpress.org/support/users/jadolyo/)
 * (@jadolyo)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/your-plugin-causing-a-warning-notice/#post-15367114)
 * Hello,
 * Not it’s not resolved yet it’s showing the same error and the plugin not working
   with PHP v8
 * The same error happens when I enable debugging:
 * `Notice: is_page 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.0.)
   in /home/jadolyoc/staging.jadolyo.com/wp-includes/functions.php on line 5768`

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

The topic ‘Your plugin causing a warning notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qa-cost-of-goods-margins_e0e0e0.svg)
 * [QA Cost of Goods & Margins](https://wordpress.org/plugins/qa-cost-of-goods-margins/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qa-cost-of-goods-margins/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qa-cost-of-goods-margins/)
 * [Active Topics](https://wordpress.org/support/plugin/qa-cost-of-goods-margins/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qa-cost-of-goods-margins/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qa-cost-of-goods-margins/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ahmed Jadelrab](https://wordpress.org/support/users/jadolyo/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/your-plugin-causing-a-warning-notice/#post-15367114)
 * Status: resolved