Re-filing of http://drupal.org/node/335133

When I upload image, I got this in place of where the image should be:
{ "status": true, "data": "\x3cdiv id=\"edit-field-images-0-ahah-wrapper\"\x3e\x3cspan id=\"thmr_27\" class=\"thmr_call\"\x3e\n \x3cdiv class=\"form-item\" id=\"edit-field-images-0-wrapper\"\x3e\n \x3cspan id=\"thmr_16\" class=\"thmr_call\"\x3e\n \x3cspan id=\"thmr_17\" class=\"thmr_call\"\x3e\n \x3cdiv class=\"filefield-element clear-block\"\x3e\x3cdiv class=\"widget-preview\"\x3e\x3cspan id=\"thmr_18\" class=\"thmr_call\"\x3e\n \x3cspan id=\"thmr_6\" class=\"thmr_call\"\x3e\n \x3cdiv class=\"imagefield-preview\"\x3e\x3cspan id=\"thmr_7\" class=\"thmr_call\"\x3e\n \x3cimg src=\"http://vcrowd.infinitedata.net/system/files/imagefield_thumbs/tn2_1.jpg\" /\x3e\x3c/span\x3e\n\n\x3c/div\x3e\x3c/span\x3e\n\n\x3c/span\x3e\n\n\x3c/div\x3e\x3cdiv class=\"widget-edit\"\x3e\x3cspan id=\"thmr_26\" class=\"thmr_call\"\x3e\n \x3cinput type=\"hidden\" name=\"field_images[0][fid]\" id=\"edit-field-images-0-fid\" value=\"231\" /\x3e\n\x3cspan id=\"thmr_22\" class=\"thmr_call\"\x3e\n \x3cspan id=\"thmr_20\" class=\"thmr_call\"\x3e\n \x3cdiv class=\"form-item\" id=\"edit-field-images-0-data-title-wrapper\"\x3e\n \x3clabel for=\"edit-field-images-0-data-title\"\x3eTitle: \x3c/label\x3e\n \x3ctextarea cols=\"60\" rows=\"5\" name=\"field_images[0][data][title]\" id=\"edit-field-images-0-data-title\" class=\"form-textarea resizable imagefield-text\"\x3e\x3c/textarea\x3e\n \x3cdiv class=\"description\"\x3eThe title is used as a tool tip when the user hovers the mouse over the image.\x3c/div\x3e\n\x3c/div\x3e\n\x3c/span\x3e\n\n\x3c/span\x3e\n\n\x3cinput type=\"hidden\" name=\"field_images[0][list]\" id=\"edit-field-images-0-list\" value=\"1\" /\x3e\n\x3cspan id=\"thmr_24\" class=\"thmr_call\"\x3e\n \x3cspan id=\"thmr_25\" class=\"thmr_call\"\x3e\n \x3cinput type=\"submit\" name=\"field_images_0_filefield_remove\" id=\"edit-field-images-0-filefield-remove\" value=\"Remove\" class=\"form-submit common1 greenButton1\" /\x3e\n\x3c/span\x3e\n\n\x3c/span\x3e\n\n\x3c/span\x3e\n\n\x3c/div\x3e\x3c/div\x3e\x3c/span\x3e\n\n\x3c/span\x3e\n\n\n\x3c/div\x3e\n\x3c/span\x3e\n\n\x3c/div\x3e\x3cscript type=\"text/javascript\"\x3ejQuery.extend(Drupal.settings.ahah, { \"edit-field-images-0-filefield-upload\": { \"url\": \"/filefield/ahah/project/field_images/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-0-ahah-wrapper\", \"selector\": \"#edit-field-images-0-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Upload\" } }, \"edit-field-images-0-filefield-remove\": { \"url\": \"/filefield/ahah/project/field_images/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-0-ahah-wrapper\", \"selector\": \"#edit-field-images-0-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_images_0_filefield_remove\": \"Remove\" } }, \"edit-field-images-1-filefield-upload\": { \"url\": \"/filefield/ahah/project/field_images/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-1-ahah-wrapper\", \"selector\": \"#edit-field-images-1-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Upload\" } }, \"edit-field-images-1-filefield-remove\": { \"url\": \"/filefield/ahah/project/field_images/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-1-ahah-wrapper\", \"selector\": \"#edit-field-images-1-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_images_1_filefield_remove\": \"Remove\" } }, \"edit-field-images-2-filefield-upload\": { \"url\": \"/filefield/ahah/project/field_images/2\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-2-ahah-wrapper\", \"selector\": \"#edit-field-images-2-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Upload\" } }, \"edit-field-images-2-filefield-remove\": { \"url\": \"/filefield/ahah/project/field_images/2\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-2-ahah-wrapper\", \"selector\": \"#edit-field-images-2-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_images_2_filefield_remove\": \"Remove\" } }, \"edit-field-images-3-filefield-upload\": { \"url\": \"/filefield/ahah/project/field_images/3\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-3-ahah-wrapper\", \"selector\": \"#edit-field-images-3-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Upload\" } }, \"edit-field-images-3-filefield-remove\": { \"url\": \"/filefield/ahah/project/field_images/3\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-3-ahah-wrapper\", \"selector\": \"#edit-field-images-3-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_images_3_filefield_remove\": \"Remove\" } }, \"edit-field-images-4-filefield-upload\": { \"url\": \"/filefield/ahah/project/field_images/4\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-4-ahah-wrapper\", \"selector\": \"#edit-field-images-4-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Upload\" } }, \"edit-field-images-4-filefield-remove\": { \"url\": \"/filefield/ahah/project/field_images/4\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-images-4-ahah-wrapper\", \"selector\": \"#edit-field-images-4-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_images_4_filefield_remove\": \"Remove\" } } });\x3c/script\x3e" }

This affects the Google Chrome browser but does not affect Firefox.

This bug also affects Opera which throws a JavaScript error and then redirects to the page filefield/ahah/project/field_images/0

CommentFileSizeAuthor
#5 error-when-attempting-image-upload.png102.84 KBwhistle
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this problem. Please provides steps to reproduce from a fresh Drupal install if possible. My guess is either server configuration or the JavaScript conflicting with another module.

ngstigator’s picture

I think this is a WebKit issue. I can reproduce in Google Chrome (Mac OS and Linux) and Safari (Mac OS).

UPDATE: works fine on a fresh plain install.

vatsal’s picture

Hi,
Can anyone please help.I have tried all the things discussed in various other posts too but nothing seems to be working for me.It is working fine on mozilla and internet explorer but causing problem on chrome when upload button is clicked.Otherwise if submit button is clicked it is working fine.
Any help will be highly appreciated.

bmrozinski’s picture

I think it's more related to the theme you are using than to the FileField. Please validate your site with http://validator.w3.org/check (for example) and try to get rid of all errors. It helped in our case.

Edit: Hmmm... I was wrong. Actually it didn't help at all:-) But we're still fighting. I'll let you know, if we find something.

whistle’s picture

Issue tags: +image upload, +epsa
FileSize
102.84 KB

Having the same issue on our site. :-(
Has there been any change/progress since september?

We are using the file field, image field and Epsacrop (can't figure out what is breaking) to get this bizzare error:

{ "status": true, "data": "\x3cdiv id=\"edit-field-image-0-ahah-wrapper\"\x3e\x3cdiv class=\"form-item\" id=\"edit-field-image-0-upload-wrapper\"\x3e\n \x3clabel for=\"edit-field-image-0-upload\"\x3eImage: \x3c/label\x3e\n \x3cdiv class=\"filefield-element clear-block\"\x3e\x3cdiv class=\"widget-preview\"\x3e\x3cdiv class=\"imagefield-preview\"\x3e\x3cimg src=\"
(truncated for brevity - screenshot attached)

As with the @vatsal the "submit" button works but not "upload".
If anyone found a fix for this I would be most grateful for some insight.
Thanks

quicksketch’s picture

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

Closing after lack of updates and ability to reproduce.