Needs work
Project:
Image FUpload
Version:
6.x-3.0-rc2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2009 at 16:40 UTC
Updated:
7 Feb 2011 at 06:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
grandcat commentedPlease try to activate "normal caching" at Home >> Administer >> Site configuration >> Performance (Page cache) and tell me if it helps.
Comment #2
Holie commentedGrandcat,
Normal caching is allready active.
the images names contain spaces and "(" ")", could that have anything to do with it?
Comment #3
grandcat commentedNo, spaces are no problem for image_fupload.
Have you set another thing at performance page? For example, minimum page lifetime?
Could you create a screenshot of this page?
EDIT:
I saw that you were using Chrome, could you also test this special case in Firefox or IE 7?
Comment #4
Holie commentedI'm having these issues in chrome, ie7, ff3.0.5
The screenshots also include the installed modules and the error I get on image_fupload
Edit: Turning all caching completely off and clearing the cache doesn't seem te be a solution. When uploading 4 images there is no problem, when uploading 60 there is.
Comment #5
grandcat commentedSo, I think, it's a configuration thing:
I saw that you have set "minimum lifetime" to 1 min. This could be a problem. Try to disable this option by setting it to the following:
<none>Have a look at the screenshot and tell me if it helps.
Comment #6
Holie commentedWhen setting it to
<none>the problem is solved, thanks!Comment #7
grandcat commentedOK, so I think, this is a Drupal Issue.
Comment #9
mumsix commentedI am having the same problem and disabling the minimum cache lifetime worked but this isn't really a solution. Is there another way to fix this?
Comment #10
tntclaus commented+1
I agree.
Comment #11
grandcat commentedAt the moment, no.
Comment #12
dicreat commentedsubscribe
Comment #13
donquixote commentedsubscribe.
Why is this a Drupal issue?
Comment #14
omerida commentedI worked around this by disabling the cache_lifetime in function image_fupload_imagefield_node_create()
added this after global $user (line 236) :
and this before the function closes (line 431)
Comment #15
hansrossel commentedI'm using Boost for static caching, and #6 (setting cache to ) does not work. But for the rest the issue is the same.
#14 solves the problem in my site. Would it be possible to implement that fix into the code of the next release?
Comment #16
alanburke commentedPatch based on 14,
but at a different location in the file
Comment #17
alanburke commentedComment #18
grandcat commentedThe location the settings are done, can't be taken. This would be too buggy.
Comment #19
inforeto commentedTried the lines in #14 (http://drupal.org/node/353915#comment-1860284) and the validation error ceased.
Comment #20
inductor commentedAlso this error occures when using memcache. Any chance for it to be fixed?
Comment #21
Macronomicus commentedPatch in #16 worked for me and I am using memcache among other things .. thanks a ton alanburke for fixing it, my new server and fupload were not playing nice until I found your fix, awesome!
Cheers!
Comment #22
theruslanPatch in #16 worked for me. Thanks a lot.
Comment #23
p4trizio commentedPatch in #16 worked for me too, thanks
Comment #24
grandcat commentedI repeat that #16 is a hack. You could do the same by setting the value in Drupal's cache settings.
Comment #25
inforeto commentedWhat exactly cause conflict for sites with the page cache turned on?
(apparently on function fupload_filetransfer)
Comment #26
grandcat commentedIt's the AJAX mechanism which is repeated for each image. If there's no cache enabled, the form won't be cached.
Comment #27
geerlingguy commentedSetting minimum lifetime to fixed the problem for me as well!
Comment #28
inforeto commentedCan we change the title of the issue to "Validation error when cache is enabled" ?
Comment #29
grandcat commentedComment #30
geerlingguy commentedI can *also* confirm that this fixes problems with uploading behind a proxy server. I was at my wits end trying to fix this problem, and turning off the minimum cache lifetime solved both problems in one fell swoop!
Comment #31
das-peter commentedHi there,
I changed a small piece of code to workaround this issue. My "minimal caching duration" is set to 5 minutes and everything works.
Cheers,
Peter
Comment #32
frankcarey commentedI've turned minimum cache off (we turned it on last week and then turned it off again for more than a week now) but I'm still getting the error. Images upload, and then the processing starts, but the processing widgets just keeps trying post requests over and over, but keeps getting this response:
{ "status": true, "data": "\x3cdiv class=\"messages error\"\x3e\nValidation error, please try again. If this error persists, please contact the site administrator.\x3c/div\x3e\n" }
We are also running memcache, but not for sessions. And we are running behind a load balancer.
Comment #33
frankcarey commentedyeah #16 fixed it for some odd reason. Looking at my variables table 'cache_lifetime' == 's1:0' . Again, I manually set min cache lifetime to none, and this was still an issue.
Comment #34
geerlingguy commentedI tried patching with #16, but that didn't do the trick for me.
My site is accessed behind a corporate firewall (MS proxy server), and upon upload, the first three or four pictures always go through, then the rest get stuck in the queue, while a proxy authentication window pops up, asking me to log into the proxy server again.
When I tunnel via SSH, or access the site from practically everywhere else, everything works swimmingly. :(
Comment #35
grandcat commentedO,k, but for your case: It seems to be the proxy's fault.
Comment #36
geerlingguy commentedHmm... I was having trouble with this in both IE and FireFox all morning, then I changed line 26 of swfupload-settings.tpl.php to:
After doing this, I could see all the data output of swfupload, and everything worked [Edit: works in IE after one failed attempt, doesn't work in FF]... I'll try a few other settings as well, and we'll see how it goes! (I think setting the "use_query_string" setting to 'true' in the SWFUpload settings might help as well, but wouldn't be as secure).
(By the way, it seems you're using tabs - at some point, you might want to switch to soft tabs).
EDIT: When I set the debug mode to 'true' and try uploading via firefox, here's the output (it doesn't advance past the last line):
Comment #37
3dloco commentedThanks Omerida & Alanburke....#16 worked for me too..