Support » Plugin: Mandatory Field » wp_enqueue_script error

  • Resolved likethegoddess

    (@likethegoddess)


    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_enqueue_script error’ is closed to new replies.