• 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)
  • 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 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.

    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

    (@lcini)

    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.

    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.

    I found a temporary solution explained here: https://www.ads-software.com/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.

    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!

    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 );

    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.

    Same here. Patch worked, but a fix would be much better.

    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.

    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.