Title: Uncaught SyntaxError: Unexpected identifier load-scripts.php:88 Uncaught Referen
Last modified: August 21, 2016

---

# Uncaught SyntaxError: Unexpected identifier load-scripts.php:88 Uncaught Referen

 *  [L.Cini](https://wordpress.org/support/users/lcini/)
 * (@lcini)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/)
 * can someone please help with this issue?
    I have worked for months on this website.
   I have little to no experience. I have got so far and then all of a sudden at
   random times when I go to edit a product on my product page the add media button/
   links/ add product tag page doesnt respond. when i right click on inspect element
   I get two errors like: Uncaught SyntaxError: Unexpected identifier load-scripts.
   php:88 Uncaught ReferenceError: wp is not defined
 * can anyone shed light on this issue. The problems started when I used filezilla
   to do some sort of ftp transfer to back up my website. I thought it went through
   fine and then went and purchased from ipage their back up and restore service
   which was only 12.00 for the year, however, this issue came up and now i cannot
   edit my products.
 * there is a reason why people like me use drag and drop. this issue needs to get
   fixed or ive wasted 2 months of my life which i cannot get back.
 * thank you to anyone who can help.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888048)
 * You have an issue that is specific to your site – not WordPress. Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the default theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.
 * – re-uploading all files & folders – **except** the wp-content folder and wp-
   config.php & root .htaccess files – from a **fresh** download of your current
   version of WordPress. Make sure that you delete the old copies of files & folder
   before uploading the new ones.
 *  [Mark Freedman](https://wordpress.org/support/users/markfreedman/)
 * (@markfreedman)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888207)
 * I have had this same issue (load-scripts.php:88) when editing a post. Removed
   all plugins and widgets. Changed themes. Even removed plugins folder. Same issue.
   3.9.1.
 * Oh, also, line 88 of load-scripts.php is blank.
 *  Thread Starter [L.Cini](https://wordpress.org/support/users/lcini/)
 * (@lcini)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888213)
 * did you ever find a fix? I’m going mad trying to fix this. its so random. I’ve
   had other people login and they don’t have the issue. What gives here?
 * if you ever find a solution I’d be happy to hear it.
 * I change themes and everything works but other people who log in for me to try
   it dont have issues.
 *  [Mark Freedman](https://wordpress.org/support/users/markfreedman/)
 * (@markfreedman)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888239)
 * I never found a fix. Randomly, it works (I don’t get that error), and I can continue
   editing posts and switching between text and view modes. But most of the time
   it throws the error, and basically the impact is that no page events are fired(
   it appears the error is short-circuiting the loading of jQuery on the page).
 * Very frustrating.
 * I don’t have this issue with other sites I have, and I don’t appear to have this
   issue when running the site locally from my own PC. I’ve turned off all Chrome
   extensions, but I do have this same problem in all browsers, so that was a wasted
   effort.
 * I’ve turned off all plugins and widgets, and went back to the past three default
   themes (2012, 2013, 2014), but the issue remains. As I mentioned above, I’ve 
   even tried removing the entire plugins folder to ensure nothing was loaded to
   no avail.
 * Because this PHP script (load-scripts.php) is used for loading *all* scripts 
   on the page, it’s extremely hard to trap and debug.
 *  [Mark Freedman](https://wordpress.org/support/users/markfreedman/)
 * (@markfreedman)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888240)
 * I found a temporary solution explained here: [http://wordpress.org/support/topic/wp-28-jquery-error](http://wordpress.org/support/topic/wp-28-jquery-error)
 * Basically, add one of these to your wp-config.php file:
 * define(‘CONCATENATE_SCRIPTS’, false );
 * – or –
 * define(‘SCRIPT_DEBUG’, true);
 * This will avoid the attempted concatenation or load the full (non-minified) versions
   of the JavaScript files used on the site, respectively, specifically for the 
   admin page. Will hurt performance a bit, but it’s not noticeable.
 *  [Ravenous Raven Design](https://wordpress.org/support/users/ravenousravendesign/)
 * (@ravenousravendesign)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888272)
 * You guys are not alone. I have the exact same error and issues along with the
   error. The load-scripts.php error line 88 causes me to not be able to switch 
   between text and visual tabs. I can’t add shortcodes. I’ve tried deactivating
   plugins ands and reinstalling wordpress. I will try the fix above and let you
   know how it goes. Thanks!
 *  [Ravenous Raven Design](https://wordpress.org/support/users/ravenousravendesign/)
 * (@ravenousravendesign)
 * [12 years ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888273)
 * Ok, so I just added this script to my wp-config file and now my problem has been
   solved!! Thanks so much Mark Freedman!!
 * Add this to wp-config
    define(‘CONCATENATE_SCRIPTS’, false );
 *  [revixi5](https://wordpress.org/support/users/revixi5/)
 * (@revixi5)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888342)
 * Almost the same problem here, not the line 88 but another one, and the effect
   was to freeze the Dashboard widgets and the Info and Help panels.
 * I tried to figure what was the problem without success… Adding the “Concatenate”
   line in “Config” **did solve the problem**, but I don’t like patch…
 * If anyone find the source of the problem, please tell us. Thanks.
 *  [tpedroso](https://wordpress.org/support/users/tpedroso/)
 * (@tpedroso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888349)
 * Same here. Patch worked, but a fix would be much better.
 *  [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888356)
 * For everyone still having this issue and where CONCATENATE_SCRIPTS is no (full)
   solution I have two additional causes to look for:
 * 1. disable your ad blocker
    Especially for those using ad plugins it might happen
   that the ad blocker also blocks scripts in the backend. since the script are 
   concatenated it might lead to problems.
 * 2. check for plugins / features that return many items
    I ran into this issue
   a couple of times already when I used a plugin that is – e.g. on post edit screens–
   trying to query many items. E.g. a plugin returns all categories, tags or even
   posts for whatever reason. If you have 1 mio posts (like I had) or a couple of
   thousand automatically generated tags (like a cliend had) these functions often
   break. There is no solution to this other to ask the developer to set a limit
   to such requests.
 *  [Mark Freedman](https://wordpress.org/support/users/markfreedman/)
 * (@markfreedman)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888357)
 * Thank you Thomas. You may very well have a point — I do use an ad blocker. I 
   can’t really test it now, though, because after I removed the define(‘CONCATENATE_SCRIPTS’,
   false); line from my config file, it still worked. So I’m guessing a recent WordPress
   update solved any conflict with ad blockers.
 * I also now turned off the ad blocker on my domain. Glad I can now take advantage
   again of the performance gains from concatenating the scripts.
 * Thanks.

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

The topic ‘Uncaught SyntaxError: Unexpected identifier load-scripts.php:88 Uncaught
Referen’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 7 participants
 * Last reply from: [Mark Freedman](https://wordpress.org/support/users/markfreedman/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-identifier-load-scriptsphp88-uncaught-referen/#post-4888357)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
