Title: wp_register_script bug
Last modified: August 21, 2016

---

# wp_register_script bug

 *  [slaterino](https://wordpress.org/support/users/slaterino/)
 * (@slaterino)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp_register_script-bug/)
 * Hi,
    I absolutely love this plugin and have used it for years now. It really 
   has made adding videos so much easier. However, I did recently find a bug. This
   message has been coming up in my debug.log:
 * “[02-Jul-2014 11:13:47 UTC] PHP Notice: wp_register_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](http://codex.wordpress.org/Debugging_in_WordPress)
   for more information. (This message was added in version 3.3.) in “FILENAME.php”
   on line 3245″
 * I deactivated my Plugins one by one and eventually found that the cause was this
   plugin. Does anyone know how to fix this or are there plans for a plugin update?
 * Thanks,
    Russ
 * [https://wordpress.org/plugins/smart-youtube/](https://wordpress.org/plugins/smart-youtube/)

The topic ‘wp_register_script bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/smart-youtube_cccccc.svg)
 * [Smart YouTube PRO](https://wordpress.org/plugins/smart-youtube/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-youtube/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-youtube/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-youtube/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-youtube/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-youtube/reviews/)

## Tags

 * [Youtube](https://wordpress.org/support/topic-tag/youtube/)

 * 0 replies
 * 1 participant
 * Last reply from: [slaterino](https://wordpress.org/support/users/slaterino/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/wp_register_script-bug/)
 * Status: not resolved