Rules UI is collapsed and the autocomplete is not working.

We see an error on this line #112 of the file rules.autocomplete.js
this.jqObject.data(autocompleteDataKey)._renderItem = function(ul, item) {

Firefox: TypeError: this.jqObject.data(...) is undefined.
Google Chrome: Uncaught TypeError: Cannot set property '_renderItem' of undefined

The site consists of following:
Drupal version - 7.53
Rules - 7.x-2.9
Drupal Commerce - 7.x-1.13

We are not able to any new rules.
When I add Total for the Data Selector field, I got the following error.
Data selector commerce-line-item:commerce-total: for parameter commerce_line_item is invalid.

Note: I don't use jQuery UI and jQuery update module.

CommentFileSizeAuthor
rules-ui-collapsed.png40.44 KBgurunathan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gurunathan created an issue. See original summary.

TR’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

There are lots of things that can break JavaScript operation on a page. jQuery Update is just one of them. Have you tested this using the default Bartik theme instead of your custom theme? Have you looked to see what other JavaScript is being loaded on that page? Themes and modules can add their own scripts, composer can insert a different version of jQuery than you thought you were using, so check the page to see exactly what version is being delivered to the client.

The Rules JavaScript hasn't been changed in years, and there are several hundred thousand sites using it but no-one else reporting the same issue. So I have some confidence that this is a problem with your site, not with Rules.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)