Closed (fixed)
Project:
ImageField
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2010 at 21:01 UTC
Updated:
30 Mar 2010 at 09:20 UTC
I'm sorry if someone already wrote about this problem.
Here it is:
I've got imagefield with ability to upload multiple images (unlimited).
Sometimes when i click on button "Add one more file" whole form just fades out and here i am sitting with blank space.
I've checked log - no errors in here.
Firebug happily reports nothing. Just some json data ("Loading" or something like that).
Comments
Comment #1
quicksketchThis is probably because you exceeded the maximum upload limit your server supports. In such a case, everything in $_POST and the uploaded file are completely discarded by PHP, making things difficult for ImageField. However if you're clicking the "Upload" button, ImageField will tell you this error. If you use the "Add another item" button, then CCK isn't quite so careful and the form may just disappear. See these handbook pages for fixing this problem:
http://drupal.org/node/423478
http://drupal.org/node/422474
Comment #2
Kane commentedWhat if i haven't uploaded anything yet?
I click on "add one more field" at the time when i haven't uplodaed anything. So i guess there shouldn't be any problem with filesize.
As a matter of fact, sometimes i get another error - An unrecoverable error occurred... .
Though, this one could be because until now i had page cache and eacelerator working at the same time (not sure yet).
Comment #3
quicksketchIf you haven't uploaded anything, FileField/ImageField doesn't try to do anything and it's probably a site-wide problem you're having with any CCK field that supports multiple values.
Comment #4
Kane commentedCould it be cache related problem?
If i try to add more fields right after node/add page loaded everything works. But if i wait 3-5 minutes (cache lifetime - 5) form disappears.
Btw, here'what i get from the server after i try to add more fields:
{ "data": "" }Comment #5
quicksketchIt may be. Drupal stores forms in the cache_form table if that form will require any kind of AHAH/AJAX functionality. If the cache entry cannot be found, then the form just disappears, like you're seeing. However I don't see caching being the problem most of the time, unless you've integrated with Memcache, Cache Router, or some other alternative cache system.
Comment #6
Kane commentedI've got eAccelerator on server, but it's not integrated with Drupal.
Comment #7
Kane commentedShit. I'm a fucking moron. Sorry for language.
I forgot that couple of months ago i've set custom cron job to clear some cache tables including cache_form.
quicksketch ,thanks a lot for you line
Drupal stores forms in the cache_form table if that form will ...
Comment #8
quicksketchHa, unbelievable. Well glad we figured that one out, could have been months with this issue open.