Title: wp_enqueue_script error after update to 3.3
Last modified: January 31, 2019

---

# wp_enqueue_script error after update to 3.3

 *  Resolved [carriemims](https://wordpress.org/support/users/carriemims/)
 * (@carriemims)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp_enqueue_script-error-after-update-to-3-3/)
 * Using WP 5, and just updated plugin to 3.3. I received 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/content/a2pewpnaspod04_data06/71/3967671/
   html/wp-includes/functions.php on line 4231
 * Can anyone offer a solution?
 * Thank you

Viewing 1 replies (of 1 total)

 *  [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * (@lindzconnell)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp_enqueue_script-error-after-update-to-3-3/#post-11155511)
 * Hello [@carriemims](https://wordpress.org/support/users/carriemims/),
 * The Notice that you’re seeing is a message from WordPress that a file wasn’t 
   enqueued in the preferred way, however this doesn’t cause any functionality issues.
 * If you’re seeing this message displayed on the site, then we recommend to disable
   PHP error reporting and display of notices/ warnings. You can do this by either
   contacting your website host about updating your php.ini file, or by installing
   this plugin: [https://wordpress.org/plugins/php-settings/](https://wordpress.org/plugins/php-settings/)
 * With that installed, you can go to Tools >> PHP Settings, and set it up like 
   this: [http://prntscr.com/mezm1d](http://prntscr.com/mezm1d)
    error_reporting
   = 1 display_errors = Off
 * This may take some time to take effect on the site (php.ini changes usually take
   at least 5-10 minutes on most servers). This will also help prevent any other
   PHP errors from being displayed to your users, while still allowing actual errors
   to be displayed.
 * If you’re unable to do this, or want another solution, please send us an email
   at [support@diversesolutions.com](https://wordpress.org/support/topic/wp_enqueue_script-error-after-update-to-3-3/support@diversesolutions.com?output_format=md)
   and our awesome team here can assist you with this further. Just be sure to include
   the name on your account and the domain name associated with it too.
 * Thanks!
    _[ [Signature moderated](https://wordpress.org/support/guidelines/#avoid-signatures)]_
    -  This reply was modified 7 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 7 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 1 replies (of 1 total)

The topic ‘wp_enqueue_script error after update to 3.3’ is closed to new replies.

 * ![](https://ps.w.org/dsidxpress/assets/icon-128x128.png?rev=2902025)
 * [Diverse Solutions IDX Real Estate Listings & MLS Search](https://wordpress.org/plugins/dsidxpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dsidxpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dsidxpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dsidxpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dsidxpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dsidxpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/wp_enqueue_script-error-after-update-to-3-3/#post-11155511)
 * Status: resolved