Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Nothing that I can see in the code that suggests this is by design, so will delve a little deeper this weekend as I have site which needs a lot more than 15 in development! :)
I have to correct myself - older once are not deleted: the new option image (so the 21st) is simply not saved!!!! This appears although I used the module which is mentioned in this post.
As reported by tobiberlin in post #7. I simply cannot load any more option images even with the latest update. The previously loaded images are OK. My guess is that this problem is related to some other change in other drupal modules. Up until early October 2010, I had no trouble loading images. Now they do not upload at all. Is anyone else having this problem?
I'm not sure if this is related, but I was experiencing the same problem as you both - i simply couldn't upload any more images for a given product. It didn't seem to be capped at 15 or 20 ( it was more like 40). What solved the problem for me was
add this to your Drupal root's php.ini:
max_file_uploads = 99999 (or whatever number you deem a high enough limit)
I had assumed that my host had updated the servers version of PHP and that somehow started to limit the number of file uploads (a limit i had never reached before) until I updated this directive. I'm even more suspicious that this could be your solution as well because you mentioned you didn't have this problem until October 2010. After lots of searching, this was the best resource i found that led me to this:
but an important security update has been made to the 5.2.x branch. The new max_file_uploads PHP directive will prevent DOS (denial of service) attacks that happen by using file uploads to create temporary file exhaustion. This is an important one, and should be implemented as soon as possible.
ensure upload limits are set correctly at admin > site configuration > file uploads. Especially "Default total file size per user: " (however i'm not sure if this directly influences imagecache uploads or not?)
Is it possible this could be the solution for you as well? i hope this helps someone
I think this is it... but I do not get the max_file_uploads value changed :-( I had a look at the phpinfo found in the reports and this value is set to 20.
I tried several ways to change this value but nothing works. In .htaccess I wrote
php_value max_file_uploads 40
I had a look at the php.ini from the server but there is no value for max_file_uploads defined - so I added max_file_uploads 40 and uploaded the whole php.ini file to my drupal root. What shall I say: still the value remains 20.
I just was able to change this value by changing the original php.ini and re-starting the server... and now I can upload more images! THANK YOU VERY MUCH :)
I tried making the change to max_file_uploads (in .htaccess ) but unfortunately this had no effect. I have emailed the hosting company and they cannot change the max_file_uploads. This is their response:
"Thank you for your email. Please understand that changing this value is a high security risk, especially on shared servers, and we can not change max_file_uploads on the Web Server. The default value is 20. All Web Servers run an FTP service which can be used to upload larger amounts of files."
So I have tried to load the images via ftp into the appropriate places including generating the 3 different sizes of images required and then tried to load the images, through the uc_option image module, hoping that they would be found. This doesn't work. So in my mind, the option image module needs some modification to allow manual linking of images that have already been ftp'ed to the server. On unix or windows based systems that use shared servers this is needed. Otherwise the number of options per product will be limited to the hosting company's default max_file_uploads.
If anyone has a workaround for this that doesn't involve the lengthy process of manually modifying the database file table please let me and the others know.
Hey you guys, thank you so much for working on this. I'm sorry I have been away. I have added the value in my php.ini file and it seems to have worked. Maybe other users in other ways have been affected by this. Seems like a weird thing for drupal to do. Limiting uploads like that..
Comments
Comment #1
acouch commentedMarking as bug. Will investigate.
Comment #2
jamesfk commentedDitto for me. Will see if I can spot anything in the module limiting it to 15 per attribute.
Comment #3
acouch commentedAny help is appreciated.
Comment #4
jamesfk commentedNothing that I can see in the code that suggests this is by design, so will delve a little deeper this weekend as I have site which needs a lot more than 15 in development! :)
Comment #5
tobiberlinsubscribing - but for me it is possible to save 20 option images - then no additional image is saved but older once are deleted?!
Comment #6
jamesfk commentedThat's interesting! Are you using the module unpatched, or with these suggested changes?
http://www.pridedesign.ie/content/ubercart-option-images-installs
Comment #7
tobiberlinI have to correct myself - older once are not deleted: the new option image (so the 21st) is simply not saved!!!! This appears although I used the module which is mentioned in this post.
Comment #8
aju3169 commentedAs reported by tobiberlin in post #7. I simply cannot load any more option images even with the latest update. The previously loaded images are OK. My guess is that this problem is related to some other change in other drupal modules. Up until early October 2010, I had no trouble loading images. Now they do not upload at all. Is anyone else having this problem?
Comment #9
SchwebDesign commentedI'm not sure if this is related, but I was experiencing the same problem as you both - i simply couldn't upload any more images for a given product. It didn't seem to be capped at 15 or 20 ( it was more like 40). What solved the problem for me was
max_file_uploads = 99999(or whatever number you deem a high enough limit)I had assumed that my host had updated the servers version of PHP and that somehow started to limit the number of file uploads (a limit i had never reached before) until I updated this directive. I'm even more suspicious that this could be your solution as well because you mentioned you didn't have this problem until October 2010. After lots of searching, this was the best resource i found that led me to this:
http://webjawns.com/tag/max_file_uploads/
Is it possible this could be the solution for you as well? i hope this helps someone
Comment #10
tobiberlinHi,
I think this is it... but I do not get the max_file_uploads value changed :-( I had a look at the phpinfo found in the reports and this value is set to 20.
I tried several ways to change this value but nothing works. In .htaccess I wrote
I had a look at the php.ini from the server but there is no value for max_file_uploads defined - so I added
max_file_uploads 40and uploaded the whole php.ini file to my drupal root. What shall I say: still the value remains 20.Any other ideas how I could change this value?
Best,
Tobias
Comment #11
tobiberlinI just was able to change this value by changing the original php.ini and re-starting the server... and now I can upload more images! THANK YOU VERY MUCH :)
Comment #12
SchwebDesign commentedGREAT. I'm glad that helped you as well! I wonder if this will solve the problem for ColinMctavish as well
Comment #13
aju3169 commentedI tried making the change to max_file_uploads (in .htaccess ) but unfortunately this had no effect. I have emailed the hosting company and they cannot change the max_file_uploads. This is their response:
"Thank you for your email. Please understand that changing this value is a high security risk, especially on shared servers, and we can not change max_file_uploads on the Web Server. The default value is 20. All Web Servers run an FTP service which can be used to upload larger amounts of files."
So I have tried to load the images via ftp into the appropriate places including generating the 3 different sizes of images required and then tried to load the images, through the uc_option image module, hoping that they would be found. This doesn't work. So in my mind, the option image module needs some modification to allow manual linking of images that have already been ftp'ed to the server. On unix or windows based systems that use shared servers this is needed. Otherwise the number of options per product will be limited to the hosting company's default max_file_uploads.
If anyone has a workaround for this that doesn't involve the lengthy process of manually modifying the database file table please let me and the others know.
Comment #14
larowlanHowdy see #1030442: Coding standards, file upload limit - mega patch
Comment #15
ColinMctavish commentedHey you guys, thank you so much for working on this. I'm sorry I have been away. I have added the value in my php.ini file and it seems to have worked. Maybe other users in other ways have been affected by this. Seems like a weird thing for drupal to do. Limiting uploads like that..