Title: Plugin throws an error when in debug mode
Last modified: January 22, 2019

---

# Plugin throws an error when in debug mode

 *  Resolved [sduret](https://wordpress.org/support/users/sduret/)
 * (@sduret)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-throws-an-error-when-in-debug-mode/)
 * I’ve installed this plugin on a site that is in development mode and this plugin
   throws out a chain of notices on the front end of the site, such as the following:
 * Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not
   be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
   or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information.(
   This message was added in version 3.3.0.) in /home/user/site-xyz/wp-includes/
   functions.php on line 4231
 * The plugin still works as expected, and the notices go away when the debugging
   mode is turned off, but this error should be corrected with the scripts.js file
   enqueued properly.
 * thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/plugin-throws-an-error-when-in-debug-mode/#post-11206379)
 * Thanks for reporting this. Can’t reproduce this in the development version, so
   should be fixed with the next update.

Viewing 1 replies (of 1 total)

The topic ‘Plugin throws an error when in debug mode’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/plugin-throws-an-error-when-in-debug-mode/#post-11206379)
 * Status: resolved