Title: wp-admin javascript is broken from load-scripts.php
Last modified: August 19, 2016

---

# wp-admin javascript is broken from load-scripts.php

 *  [MartinnXD](https://wordpress.org/support/users/martinnxd/)
 * (@martinnxd)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-javascript-is-broken-from-load-scriptsphp/)
 * Since upgrading to 3.1.1 all JS has broken in wp-admin preventing a lot of functionality(
   it’d be nice if it was unobtrusive in the first place).
    Chrome reports:
 * Uncaught ReferenceError: getUserSetting is not defined @ load-scripts.php:2
 * This is still the case if all plugins are disabled.
 * Any suggestions would be appreciated

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-javascript-is-broken-from-load-scriptsphp/#post-2054021)
 * Does this still happen if you switch to the twentyten theme?
 * If no, check your theme’s functions.php file for something like:
 *     ```
       wp_deregister_script( 'jquery' );
       wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js');
       wp_enqueue_script( 'jquery' );
       ```
   
 * and change it to:
 *     ```
       if (!is_admin()) {
               wp_deregister_script( 'jquery' );
               wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js');
               wp_enqueue_script( 'jquery' );
           }
       ```
   
 *  Thread Starter [MartinnXD](https://wordpress.org/support/users/martinnxd/)
 * (@martinnxd)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-javascript-is-broken-from-load-scriptsphp/#post-2054101)
 * Thanks for your response. Still happens with the official theme, and all plugins
   deactivated:
 * Plugins
    All (21) | Inactive (21) | Recently Active (21) | Update Available (
   2)
 * Current Theme
    Twenty Ten 1.2 by the WordPress team
 * The file is called by:
    <script type=”text/javascript” src=”[http://www.mydomain.com/blog/wp-admin/load-scripts.php?c=0&load=hoverIntent,common,jquery-color,thickbox,theme-preview,theme&ver=843850c1bb4a004a6550e505bfa2b478″></script&gt](http://www.mydomain.com/blog/wp-admin/load-scripts.php?c=0&load=hoverIntent,common,jquery-color,thickbox,theme-preview,theme&ver=843850c1bb4a004a6550e505bfa2b478″></script&gt);
 * The content of the file is: [http://pastie.org/private/s3hirnbfy36puzl2dxrga](http://pastie.org/private/s3hirnbfy36puzl2dxrga)
 *  [jkovis](https://wordpress.org/support/users/jkovis/)
 * (@jkovis)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-javascript-is-broken-from-load-scriptsphp/#post-2054180)
 * hmm…that is strange.
 * Have you tried downloading a fresh copy of WordPress and overwriting wp-admin
   and wp-includes?
 *  Thread Starter [MartinnXD](https://wordpress.org/support/users/martinnxd/)
 * (@martinnxd)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-javascript-is-broken-from-load-scriptsphp/#post-2054183)
 * Well, doing such things is what broke it originally.. An upgrade was a bad move.
   I’ve just done a fresh install and it’s all working fine now.. Such huge jumps
   in versions clearly aren’t a good idea 🙂
 * Thanks for your suggestions!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp-admin javascript is broken from load-scripts.php’ is closed to new
replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [MartinnXD](https://wordpress.org/support/users/martinnxd/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-javascript-is-broken-from-load-scriptsphp/#post-2054183)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
