js error on post editing page

I’m getting a Javascript error on the wp-admin/post.php page
which prevents me from adding tags/editing the post’s link.. pretty much everything with JS… anyway, the error is:

> Error: d.delegate is not a function
> Source File:
> http://www.mysite.com/wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,schedule,wp-ajax-response,autosave,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-query,admin-comments,suggest,jquery-ui-sortable,postbox,post,word-count,thickbox,media-upload&ver=c1c854f5d9062306d43d7331055686c9
> Line: 42

UPDATE
Only solution that seemed to work was downgrading the WordPress website to 3.0.5
I’m not sure why is this happening, but after 5 hours of debugging – I don’t care

Related posts

Leave a Reply

5 comments

  1. I’d suggest disabling script concatenation and/or compression to see if that helps. You can do this by adding the following to the wp-config.php file:

    define( 'CONCATENATE_SCRIPTS', false );
    define( 'COMPRESS_SCRIPTS', false );
    

    And maybe even script debugging to..

    define( 'SCRIPT_DEBUG', true );
    

    Are you using any caching plugins?

    EDIT:
    The most common reason for seeing that message seems to be running an older version of jQuery, ie. anything lower than 1.4.2 … do you have any plugins that load jQuery?

  2. Is javascript working anywhere in the back-end? i.e. is javascript working on your Dashboard? In the edit screens for other post-types (e.g. Pages)?

    If javascript is not working anywhere in your back-end, try adding the following to wp-config.php, right after your database configuration:

    define('CONCATENATE_SCRIPTS', false);
    

    This seems to fix some pesky javascript issues on the back-end, especially if you’re getting conflicts with other script minimization functionality (e.g. via caching plugins, or a proxy/CDN service).

  3. If you’ve verified that the error still occurs after disabling all plugins and switching back to the default/included theme, then you can try reinstalling WordPress. Sometimes an individual file (or two) can be corrupted during the download of an update.

    To re-install WordPress, log into the admin part of your WordPress site and go to the Updates page (http://yourblogurl/wp-admin/update-core.php). There you should see a button labelled “Re-install Automatically”. That will re-download the WordPress files, overwriting anything that may have been previously corrupted.

  4. I had the exact same problem, I solved the issue by disabling a plugin and then went into my pages, then returned to the plugins and enabled the plugin again, the plugin that was causing the problem was advanced custom fields.

    I also manually updated jQuery in wp-includs/js/jquery from version 1.4.1 to 1.7.

    Hope that helps.

  5. I solved this issue with the following code in the wp-config.php

    if (strpos($_SERVER['REQUEST_URI'], 'wp-admin') !== false){
        define('CONCATENATE_SCRIPTS', false );
    }
    

    This is a temporary solution for me until the versions of WP, ACF & jQuery work out.