Title: wp_enqueue_script error
Last modified: August 21, 2016

---

# wp_enqueue_script error

 *  Resolved [Diana Thompson](https://wordpress.org/support/users/likethegoddess/)
 * (@likethegoddess)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_enqueue_script-error/)
 * With debugging on, notice appears at screen top:
 * 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.) in /services7/webpages/util/s/f/sflcorg.
   site.aplus.net/notes/public/wp-includes/functions.php on line 3012
 * Adding a custom field of a custom post type and saving displays above notice 
   with the following on otherwise white screen:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /services7/webpages/util/s/f/sflcorg.site.aplus.net/notes/public/wp-includes/
   functions.php:3012) in /services7/webpages/util/s/f/sflcorg.site.aplus.net/notes/
   public/wp-includes/pluggable.php on line 875
 * On saving entry without required field, “Fields marked in RED are mandatory” 
   appears at the top. No fields are marked in red.
 * Hope this helps.
 * [http://wordpress.org/plugins/mandatory-fields/](http://wordpress.org/plugins/mandatory-fields/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ketanmujumdar](https://wordpress.org/support/users/ketanmujumdar/)
 * (@ketanmujumdar)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp_enqueue_script-error/#post-4133535)
 * This issue has been fixed in 1.6.3

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/mandatory-fields.svg)
 * [Mandatory Field](https://wordpress.org/plugins/mandatory-fields/)
 * [Support Threads](https://wordpress.org/support/plugin/mandatory-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/mandatory-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mandatory-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mandatory-fields/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ketanmujumdar](https://wordpress.org/support/users/ketanmujumdar/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/wp_enqueue_script-error/#post-4133535)
 * Status: resolved