• KerriM

    (@kerrim)


    I upgraded an older site to 2.9.1, and now I’m getting some javascript errors while on the Admin pages. It’s breaking a bunch of other things, like TinyMCE and the slide-down functionality of the admin menu. It seems to be breaking jQuery completely, too, because on some admin pages I get a “jQuery is not defined” error when another script calls for it. jQuery works fine on the non-admin pages.

    Any clues how to resolve this?
    • I’ve tried re-uploading all of the js files from w/in wp-includes and clearing cache.
    • Tried with plugins off
    • Also tried turning of magic quotes in PHP.ini (I have no idea what that’s supposed to do, but it worked for someone with a similar problem, so I gave it a shot!)

    Syntax error
    ...[Break on this error] ].handle.elem)}}});(function(){o.suppo...nk/><table></table><a href="/a" style=...
    It’s pulled from load-scripts.php, and the lin that it references is in the “Sizzle CSS Selector Engine” part of the jQuery 1.3.2 script.

    Also:
    missing } after property list
    ...[Break on this error] ).hasClass("screen-options-open")){d("...).css({backgroundImage:''url("images/s...
    This one’s also coming from load-scripts.php, and looks like it has something to do with the Admin Menu

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Have you tried:

    – 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 the wp-admin and wp-includes folders from a fresh download of WordPress?

    increasing your available memory?

    Thread Starter KerriM

    (@kerrim)

    Thanks esmi. There were a couple of things I hadn’t tried, unfortunately, none of them seemed to help. Switching themes didn’t work. I manually deleted all plugins and replaced theme with fresh files. No luck. I had already tried #3 (from fresh files). I haven’t tried increasing the memory. I’ll try it but I don’t think that’ll help in this case since it’s a javascript syntax error and not a problem with the php.

    Thread Starter KerriM

    (@kerrim)

    Finally found this thread : http://wordpress.org/support/topic/278625?replies=10

    Adding define('CONCATENATE_SCRIPTS', false ); to wp-config.php fixed the problem, but I can’t say I fully understand the hows, or what any other side effects of turning off that function may be.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Syntax Errors when worpress loads scripts’ is closed to new replies.