I get the error:

$(this).Jcrop is not a function

when trying to edit a user content_profile and the url is like:

http://example.com/user/291/profile/profile

the image is automatically cropped to the top left corner and also the "upload progress" bar ajax never takes place- it reloads the page in full.

everything works fine when the url is like:

http://example.com/admin/user/user/create

any ideas?

Comments

ljrweb’s picture

also--

im noticing that when i initial click "upload" i get the following error:

$(element_settings.element).parents("form").ajaxSubmit is not a function

but only on the first URL mentioned above.

dominikb1888’s picture

I am receiving the same error with the current stable and dev versions. I am on a regular cck content type with imagefield and crop widget. The image is uploaded, but I cannot see the crop area. Only the label is visible, but the jquery plugin is apparently not loaded.

Error: $(this).Jcrop is not a function
Source: sites/all/modules/imagefield_crop/imagefield_crop.js?4
Line: 54

pounard’s picture

I also experience this error. imagefield_crop was working at first, then I used jquery_update in order to benefit the jQuery 1.3.2 version. But I also have a lot of other JS (using jQuery Tools) that pretty much work, one of them could be the source of the problem.

Also, on the edit page where imagefield_crop is here, no other JS works anymore (tinymce is dead, Drupal.ahah does not work anymore, etc).

monstordh’s picture

Having the same problem. However, my other js is working just fine, but not Jcrop. I see this error in my script inspector

TypeError: Result of expression '$(this).Jcrop' [undefined] is not a function. imagefield_crop.js:54

It was working fine for a few days and then it quit. Not sure what happened. It may be a conflict with another module, however, I can't remember turning on any subsequent modules.

I think this should be upgraded in priority.

pounard’s picture

I found the problem on my box. I use the jQuery Tools library at the same time, but a totally non explained bug happened, if jQuery Tools was loaded *after* (in the head script tags order) than jQuery crop, the last one didn't work. I just inverted the script loading order (by loading jQuery Tools in the hook_init() of a custom module) and all was working fine again.
Hope it can help!