Title: debug error message
Last modified: August 22, 2016

---

# debug error message

 *  Resolved [hartmutnz](https://wordpress.org/support/users/hartmutnz/)
 * (@hartmutnz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/debug-error-message-1/)
 * Hi, tested the site in debug mode and get this message:
 * > Notice: wp_register_script was called incorrectly. Scripts and styles should
   > not be registered or enqueued until the
   >  wp_enqueue_scripts
 * Any ideas how to fix that?

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

 *  Theme Author [Tim Nicholson](https://wordpress.org/support/users/timnicholson/)
 * (@timnicholson)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/debug-error-message-1/#post-5335201)
 * The theme doesn’t actually make any calls to wp_register_script. Could it be 
   a plugin that you are using causing that error? Take a look at functions.php 
   and you’ll see I’m using wp_enqueue_script. Also note that whole section is specifically
   triggered by wp_enqueue_scripts, meaning its called at the right time that error
   message suggests.
 *  Thread Starter [hartmutnz](https://wordpress.org/support/users/hartmutnz/)
 * (@hartmutnz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/debug-error-message-1/#post-5335202)
 * ..could be another theme that’s still on the server.. I’ll check that. Thanks

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

The topic ‘debug error message’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/flat-bootstrap/1.10.1/screenshot.
   png)
 * Flat Bootstrap
 * [Support Threads](https://wordpress.org/support/theme/flat-bootstrap/)
 * [Active Topics](https://wordpress.org/support/theme/flat-bootstrap/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/flat-bootstrap/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/flat-bootstrap/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [hartmutnz](https://wordpress.org/support/users/hartmutnz/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/debug-error-message-1/#post-5335202)
 * Status: resolved