When I use theme developer to show theme info of elements, a alert box was opened, with the text "An error occurred while attempting to process /drupal/devel_themer/variables/223114d1982fb491f2/thmr_107: $.fieldValue is not a function". And it can not loading Variables, Just only show "Loading Vars" in the place of variables.

CommentFileSizeAuthor
screenshot.jpg153.15 KBayang23

Comments

adub’s picture

Similar issues here. Using Chrome. Error message is:

Object function (j,s){return new b.fn.init(j,s)} has no method 'fieldValue'

ven7ura’s picture

I get the same message:
An error occurred while attempting to process /drupal/devel_themer/variables/141874d20a6c37362e/thmr_163: $.fieldValue is not a function.

I'm using wamp 2.1 on Windows 7
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

dgastudio’s picture

same here

yskel’s picture

Same here. Firebug reports an error in ajax.js, line 330:
$.fieldValue is not a function

Csabbencs’s picture

Same here. Browser independent error.

krabbe’s picture

Same for me

elsonwu’s picture

Issue tags: +hack

I found it is a javascript's bug in drupal 7. before being fixed, My solution is follow:

1.Just open drupal/path/to/drupal7/misc/ajax.js
about line 330
Doing follow this,
var v = $(this.element).val();
//var v = $.fieldValue(this.element);

2.clean cache and refresh
3.Theme developer will work now.

It is just losting the jquery.form.js

open the devel_themer.module file and looking for devel_themer_init() function,
add this line
drupal_add_js($base_path . 'misc/jquery.form.js');
before
drupal_add_js($base_path . 'misc/ajax.js');

It will work now!

JeremyFrench’s picture

Status: Active » Fixed

@elsonwu thanks for the fix commited Here

Should be in the next nightly.

JeremyFrench’s picture

@elsonwu thanks for the fix commited Here

Should be in the next nightly.

alexbern’s picture

Thanks for that quick fix!

JonHendricks’s picture

When you fix this error? I can't make my essay papers

effulgentsia’s picture

@JeremyFrench: sorry for accidentally adding an unnecessary jquery.form.js dependency to non-form AJAX. More info here: #995854-101: #ajax doesn't work at all if a file element (or enctype => "multipart/form-data") is included in the form. That comment also links to a critical core issue that should fix it, so hopefully, after 7.1 is released, you can remove the code that adds jquery.form.js.

Status: Fixed » Closed (fixed)
Issue tags: -hack

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Issue tags: -hack