• Hi, I got this error message, but I’m a bit confused as to exactly how to fix it.
    Notice: wp_deregister_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 /home2/danielm8/public_html/wp-includes/functions.php on line 3049

    I can go into my functions.php, but do I add the code I found below into the functions.php or do I need to fix something on line 3049? (And if it’s the later, do you recommend an editor that will display the line numbers since Text Editor doesn’t and that’s what I use for my FTP changes?)
    // Enable WP_DEBUG mode
    define(‘WP_DEBUG’, true);

    // Enable Debug logging to the /wp-content/debug.log file
    define(‘WP_DEBUG_LOG’, true);

    // Disable display of errors and warnings
    define(‘WP_DEBUG_DISPLAY’, false);
    @ini_set(‘display_errors’,0);

    // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
    define(‘SCRIPT_DEBUG’, true);

Viewing 1 replies (of 1 total)
  • Thread Starter danbon

    (@danbon)

    Also, when you go to my site (www.DanielleMarcelleBond.com), it now shows “Notice: get_current_theme is deprecated since version 3.4! Use wp_get_theme() instead. in /home2/danielm8/public_html/wp-includes/functions.php on line 2908”

    I got TextWrangler to look at the line 2908, but that’s just the error line. Where do I fix the issue? Where do I replace get_current_theme with wp_get-theme()?

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Script issue with 3.8’ is closed to new replies.