I've had this module functioning fine on D6 for some time, and in preparation for moving to D7 I have been building out a webforms and using Arrange Fields to arrange the fields. This was also working fine. Yesterday I installed a new theme (drupal.org/project/danland) and it seems like that coincided with Arrange Fields no longer working. Switching back to the original theme doesn't help, so I'm not sure if the theme is the problem. Running the Firefox error console, when I go to the Arrange Fields view on the webform and click the mouse on any field, it shows this javascript error:

Timestamp: 3/5/2013 11:57:28 AM
Error: TypeError: c.curCSS is not a function
Source File: http://d7test.site.org/sites/all/modules/jquery_update/replace/ui/ui/minified/jquery.ui.core.min.js?v=1.8.11
Line: 12

The file in question does contain several references to the curCSS function, but I'm not sure where such a function would be defined.

I've compared the source code to the same form in D6, and the D7 version does include sevearl jquery-related .js files that the D6 doesn't, and I'm curious if they have any impact. For instance, the D7 source calls 2 different versions of jquery, I think, though I'm no expert on that.

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>

I'm not sure where to turn off either of these if that's necessary. Basically, I'm looking for any assistance in diagnosing this problem.

Comments

richardp’s picture

Hmm. Well, I don't believe Arrange Fields would have any reason to access the c.curCSS function. Have you tried disabling AF and seeing if the problem goes away?

It looks like it may have to do with the fact that you are using the jquery_update module. I would have thought that AF wouldn't have any problem with jquery_update, but I guess it might.

Try these steps:
(Just to get back to a neutral state)
Disable AF. Is the problem still there? If it is, the problem isn't AF.
Disable jquery_update, but leave AF enabled. Then check for the problem.

I usually tell people, when trying to diagnose javascript issues, to switch to Garland theme just as a neutral theme, and then slowly add pieces until it breaks.

Richard

taquil’s picture

I turned off the jQuery Update module and now it works. Weird. I'm pretty sure I always had it on, but perhaps not. Nothing in the log for the last 2 weeks shows anything being done with it till just now. The source of my arrange fields page now includes neither of the includes from ajax.googleapis.com.

Please go ahead and close this if this is correct behavior.

richardp’s picture

Status: Active » Closed (works as designed)

Huh. I don't think the jquery_update module uses the googleapis. Arrange Fields doesn't.

Good luck with diagnosing, it sounds to me like there's some other module which might be acting here. Maybe the theme uses googleapis, and that was somehow part of the problem?

Richard

tlarrieu’s picture

It appears to be that the latest jquery_update module has a jquery ui library (1.8.11) that is incompatibile with the base jquery library that is also included (1.8.2). The maintainers of the jquery_update module have been asked to include jquery ui 1.8.22 or higher to fix the problem. See http://drupal.org/node/1847900 for more details.

richardp’s picture

Great, thank you for the update.

Richard

Barry Tielkes’s picture

I had the same issue. When jquery update was on version 1.8. On 1.7 it works fine.

slyisarenko-ilya@mail.ru’s picture

tlarrieu, thank you.

I replace files of JQuery UI (in module jquery_update) with files of JQuery UI version 1.8.24 and error gone out.