I'm using jQuery update 7.x-2.3 module. When i chose jQuery > 1.7 i got error in firebug on page admin/structure/context/add:

TypeError: this.name.charAt is not a function
while (this.name.charAt(0) == '!') {

/sites/all/modules/jquery_update/replace/misc/1.7/states.js?v=7.24 on line 294.

All JavaScript evens stoping working on this page.
jQuery <1.5 works fine.

Comments

iamEAP’s picture

Thanks for the detailed report, @Plazik. I'm able to reproduce the error, however I don't think the error is in this module.

I believe it's related to an issue with Drupal Core and its States API and the ways in which jQuery Update attempts to work around them. Luckily, the fix made it into Drupal 7.25 last night, so I believe you can work around the problem by:

  1. Updating to the latest Drupal 7.25
  2. Updating to the latest dev version of jQuery Update

See:

kreynen’s picture

Status: Closed (duplicate) » Active

Re-opening. We run hundreds of sites on a standard distribution. We allow a few sites to add additional modules. One site added context_query_param and has this issue with JQuery 1.7 loaded by JQuery Update 2.3 and Drupal 7.37. Disabling context_query_param eliminates the error when trying to use the Context UI. Enabling generates the error.

While I haven't found the root cause of the error, context_query_param is a contributing factor. Will post more details when I have them.

iamEAP’s picture

@kreynen, is it possible to update your distribution to use a version of jQuery Update > 7.x-2.3? I believe the issue would have been resolved as of at least 2.4.