Validation error when uploading images

Holie - January 3, 2009 - 16:40
Project:Image FUpload
Version:6.x-3.0-rc2
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

When uploading images into galleries, the first three go allright, but for the others I keep on getting this error:

Validation error, please try again. If this error persists, please contact the site administrator.

When uploading other images into another album, some of the failed images from the previous album come along into the new album.

I'm trying to import images into acidfree galleries.

Versions: Drupal 6.8, image_fupload 6.x-2.1, image 6.x-1.0-alpha3, acidfree 6.x-1.x-dev

#1

grandcat - January 3, 2009 - 17:02
Status:active» postponed (maintainer needs more info)

Please try to activate "normal caching" at Home >> Administer >> Site configuration >> Performance (Page cache) and tell me if it helps.

#2

Holie - January 3, 2009 - 17:35

Grandcat,

Normal caching is allready active.
the images names contain spaces and "(" ")", could that have anything to do with it?

#3

grandcat - January 3, 2009 - 17:51

No, 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?

#4

Holie - January 4, 2009 - 00:31

I'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.

AttachmentSize
screen1.jpg 56.96 KB
screen2.jpg 53.46 KB
screen3.jpg 55.23 KB
screen4.jpg 65.71 KB

#5

grandcat - January 4, 2009 - 11:11

So, 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.

AttachmentSize
Performance Settings (FUpload) 100.96 KB

#6

Holie - January 4, 2009 - 18:06
Status:postponed (maintainer needs more info)» fixed

When setting it to <none> the problem is solved, thanks!

#7

grandcat - January 5, 2009 - 11:17

OK, so I think, this is a Drupal Issue.

#8

System Message - January 19, 2009 - 11:20
Status:fixed» closed

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

#9

mumsix - May 12, 2009 - 12:13

I 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?

#10

tntclaus - June 7, 2009 - 14:04

+1

I agree.

#11

grandcat - June 7, 2009 - 21:37

At the moment, no.

#12

dicreat - June 24, 2009 - 06:54

subscribe

#13

donquixote - July 10, 2009 - 10:15

subscribe.

Why is this a Drupal issue?

#14

omerida - July 28, 2009 - 02:44

I worked around this by disabling the cache_lifetime in function image_fupload_imagefield_node_create()

added this after global $user (line 236) :

  $cache_lifetime = variable_get('cache_lifetime', '');
  variable_set('cache_lifetime', '');

and this before the function closes (line 431)

  variable_set('cache_lifetime', $cache_lifetime);

#15

hansrossel - August 26, 2009 - 05:13
Status:closed» active

I'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?

#16

alanburke - November 7, 2009 - 20:50
Version:6.x-2.1» 6.x-3.0-rc2

Patch based on 14,
but at a different location in the file

AttachmentSize
353915.patch 860 bytes

#17

alanburke - November 7, 2009 - 20:51
Category:support request» bug report
Status:active» needs review

#18

grandcat - December 1, 2009 - 21:20
Status:needs review» needs work

The location the settings are done, can't be taken. This would be too buggy.

#19

inforeto - December 2, 2009 - 20:39

Tried the lines in #14 (http://drupal.org/node/353915#comment-1860284) and the validation error ceased.

 
 

Drupal is a registered trademark of Dries Buytaert.