Active
Project:
Flickr ImageField
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2010 at 17:01 UTC
Updated:
19 Jul 2010 at 07:19 UTC
Wow, great module. THANKS
Am I doing something wrong in my settings?
I have 3 image fields in my node.
1 uploads 1 logo image
another uploads 4 images
and the last one lets you upload as many as you like.
All the images attached to the node is sent to Flickr, but they are sent there 6 times.
So if I upload 4 images to my node, 24 images (6 sets of 4) appear in flickr.
Thanks
Comments
Comment #1
sirkitree commentedUhm, whoa... that's certainly excessive! I have no clue - your server must somehow being submitting this more than once. I'm unable to replicate this myself, but maybe you can list more of the modules that you have installed on the site that is doing this?
Does this do this to you with a vanilla install of Drupal if it's the only module active (plus dependencies)?
Comment #2
vlooivlerke commentedOk, now its broken again.
I get this error message in my dblog: Flickr (Synchronous Upload error (4 - Filesize was zero) for image with tags )
EDIT:
Ok, this is what happens.
I have 3 image fields in my node. If I enable 1 field to send images to flicker, it work. It sends the one image to flickr.
If i edit the node with the image and save it again, it sends the same image again to flickr. Now duplicate images appear in flickr.
If i enable 2 image fields in the node, it gives me this message: Flickr (Synchronous Upload error (4 - Filesize was zero) for image with tags )
I did not install (test) this on a fresh install, as my production site is old and has lots of content, and this feature's WOW factor is to great to resist.
Even being able to send one image to flickr puts a smile on my face.
EDIT 2:
Ok here is another run-down
I have 3 image fields
field 1 takes 1 image (If only this field is enable to send to flickr, every thing works fine, except if I update the node, it sends the image again to flickr)
Field 2 takes 4 images (if I enable this field and field 1, and I upload 4 images to this field and press submit, Only the 4 image are sent to Flickr, and the are sent there 4 times, That is 16 images (4 x 4) the first fields image gets ignored and this error shows 4 times in the dblog (Synchronous Upload error (4 - Filesize was zero) for image with tags )
If Field 3 is enabled to send to flickr all images in field 1,and 2 are ignored and only images in the last imagefield are sent.
Comment #3
vlooivlerke commentedOk, Maybe I forgot to mention this important information about my setup. Very Sorry
I run this module on a Multi-Site install, where your code is stored under sites/all/modules/
and the image files are store under /sites/sitename1.com/files/images and NOT sites/default/files/images
Imagechache.module has a patch to run in this multi-site environment (imagechace thinks it is running in a private file upload environment, while the site is set to public.)
Could this be the cause? Not that I think so as no imagechace presents are applied, and the original image is sent to flickr presiding in /sites/whatever.com/files/images
Thanks
Comment #4
sirkitree commentedMore likely the problem lies in the fact that there are multiple file fields on a node and the submit handler is running more than once. I'm not sure I designed this to run for more than one imagefield at a time. It's also possible that filefield has changed something pertinent to how this works. It's been a while since I put this code up and there have been some significant changes to filefield since then.
I'm going to mark this as a bug and clarify the issue title a bit.
My suggestion to you is to try to debug when this is being submitted more than once within the code and submit a patch for review. I'm not sure when I'll have time to try to replicate this bug to get a fix as I don't actively use this module myself right now. If I did I would be more likely to spend more time debugging.
I would also suggest trying to rally some other people who may be using this module to take a look at the issue here and get more help from the community.
Comment #5
vlooivlerke commentedThanks for confirming filefield and imagefield as the culprits.
I am going to test this intensely,
There is a few other bugs, I found, and will report.
Thanks again, like I said, this module is at least uploading images for me to Flickr and is saving me heaps of time.