Using image field to upload pictures I get the following message when uploading more than 26 pictures*: "Gallery Sceneries has been updated." (I did not press save). At the same time, the Image field disappears.
Afterwards, when trying to press save I get "The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved." message.
Closing the node without saving, the node contains all +26 uploaded pictures, BUT I am now unable to do the following with the node:
- Any changes in publish/unpublish, url-alias, revisions, etc. are not saved. Clicking save will prompt the "Node X has been updated." message but changes are not saved.
- When I try to upload additional pictures (picture 28,29,30...) I get the "Node X has been updated." message, the Image field disappears, and I am again unable to save (I get the "The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved." when clicking save).
* This issue has also occured a few times with failed uploads, but when trying to reproduce it, it happens every time at picture no 27 on my Drupal 7.12. I have also experienced the same problem on Drupal 7.0 installations.
Comments
Comment #1
larsbo commentedComment #2
larsbo commentedI have now spend the whole day testing for this issue by setting up content types with only title, body, and ImageField. I then set the ImageField to unlimited values, and the error described above turns up every time. Luckily, I found the cause of this strange behavior that turns up in both Drupal 7, 7.10 and 7.12.
My server was using php 5.2.0 and apparently the Image Field code requires at least php 5.2.5 to work properly (I know that 5.2.5 is the official minimum for Drupal 7, but it slipped my memory that I was running an old version of PHP. Besides, everything else was working great and you never get any warnings that your php is outdated). I put my server on PHP 5.3 and now everything works as expected. I can upload as many pictures as I like and no strange behaviour or error messages.
This was very hard to debug so I suggest that a check is made for the PHP version during install so that the user can be warned to upgrade.
Comment #3
ilya1st commentedHi, we've danced today around with this problem.
Check is suhosin extension is installed on your server and turn them of or try tune.
PS. we've turned suhosin off cause all limits are enough but it blocks post request without any log message.
Comment #4
marcingy commentedThere is nothing to fix here.
Comment #4.0
marcingy commentedClarification
Comment #5
tarazingo commentedI had a similar problem! When I download a lot of images ( 70+ and more) , then the node is not saved, was not published, it was not possible to change the body text, was not upload new images.
Problems lies in the parameter max_input_var in php.ini
Solution:
As explained in documentation, this directive may only be set per directory scope, which means via .htaccess file, httpd.conf or .user.ini (since PHP 5.3).
See http://php.net/manual/en/configuration.changes.modes.php
Adding the directive into php.ini or placing following lines into .htaccess will work: