a fresh drupal6.10 install with modules cck, views, filefield and imagefield enabled. when creating a node, the imagefield works fine when first upload an image, but if deleted the uploaded image, and trying to upload another image, it failed with no message, just show the file upload input.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this problem. There's nothing else special about your installation? What's the size of the image you're uploading? Are you uploading the same image both times? These questions might help me determine the problem.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing after lack of response or ability to reproduce.

motto’s picture

Hi quicksketch,

I'm experiencing the same problem with a Drupal site that I currently develop.

After deleting 6 attached images from a node, I can't re-attach these 6 or any other images to the same node. (images have different dimensions from about 200x200 to ~1200x1200, JPEG format)
I also tried to attach PNGs to the same node without success.
Next, I tried to create a new node of the same content type and attach images, which failed. (Even though it worked yesterday)

>> I just found out that the upload works when I turn JavaScript off. Maybe that helps a bit. Too bad I can't see any AHAH messages to give further hints.

I'm running a WAMP installation, Drupal 6.12, ImageField 6.x-3.0 and FileField 6.x-3.0, FF 3.0

Thanks for your help on this,
Matt

motto’s picture

Version: 6.x-3.0-rc1 » 6.x-3.0
Status: Closed (fixed) » Active
quicksketch’s picture

I tried to create a new node of the same content type and attach images, which failed. (Even though it worked yesterday)

motto, so from this statement you're saying that uploads don't work at all? Can you upload any files on your site (such as through upload.module)?

itzsudip’s picture

hey .....i think i have similar problem...
once i delete my profile pic and upload some other pic them i got the previous pic again n again(the 1st pic which i have uploaded to my profile)...plz help ....

motto’s picture

Hi quicksketch, thanks for your prompt reply.

File attachments work just fine, so does uploading via "Image" module with disabled JavaScript. From the moment I turn JavaScript on, the Image module won't accept any files any more. (After hitting the "Upload" button, the form fades in and out and looks just as if I had never selected a file)

Let me know what info I have to provide in order to help you.

Thanks a bunch,
Matt

quicksketch’s picture

itzsudip, profile pictures are not provided by ImageField, so that problem is outside the scope of what's being fixed here.

motto, I still wasn't quite clear on your response:

File attachments work just fine, so does uploading via "Image" module with disabled JavaScript.

So everything works without JavaScript, but nothing (Image, Upload, ImageField) works when JavaScript is enabled? Sounds like another module is breaking the returned JSON responses. Devel module used to be culprit to this when query logging was enabled, but that's been fixed afaik. However I think the "Theme developer tool" will still break just about ever JavaScript behavior in existence, so if you have that enabled, turn it off unless you're actively using it.

motto’s picture

FileSize
27.49 KB

Only "ImageField" was affected my turning JavaScript on and off.

Yes, you were right that I was using Theme Developer, and also that it caused the JSON to blow up. I turned it off and now your module works like a charm again!

Do you need more info do determine under what conditions the Theme Developer interferes with ImageField?

Thanks for you help,
Matt

One more thing: I attached an image to show you how the ImageField form looks on my installation. Is it supposed to look like on the screenshot or am I missing information about the uploaded image (i.e. name, size)? Someone mentioned to me that ImageField would show that info...

quicksketch’s picture

Title: Can't upload image again after image was deleted » Theme developer breaks upload
Category: bug » support

No more information is needed. Just turning on Theme Developer will blow up 1/2 the JavaScript in Drupal (hence why you should leave it off unless you're actively using, there's a handy link in the devel block to help with that). But perhaps a big red error might be appropriate when FileField tries to display and Theme Developer is enabled.

houen’s picture

+1 on the big red error - it just took me +3 hours of tinkering with all the different causes and solutions to this error... also and introspective look at the filesystem paths might help a lot of users...

quicksketch’s picture

Title: Theme developer breaks upload » Give warning that Theme developer tool breaks uploads
Project: ImageField » FileField
Version: 6.x-3.0 » 6.x-3.2
Category: support » feature
Status: Active » Fixed
FileSize
1.24 KB

Big red error it is. Applied the following patch which should give the user a warning if Theme Developer Tool is actively enabled.

Status: Fixed » Closed (fixed)

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