Title: Script issue with 3.8
Last modified: August 21, 2016

---

# Script issue with 3.8

 *  [danbon](https://wordpress.org/support/users/danbon/)
 * (@danbon)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/script-issue-with-38/)
 * 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](https://wordpress.org/support/users/danbon/)
 * (@danbon)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/script-issue-with-38/#post-4484886)
 * 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.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [danbon](https://wordpress.org/support/users/danbon/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/script-issue-with-38/#post-4484886)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
