Posted by ColinMctavish on October 27, 2010 at 11:01pm
7 followers
Jump to:
| Project: | Ubercart Option Images |
| Version: | 6.x-1.4 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I am only allowed to enter in 15 option images. Is that a bug or a limit?
Thanks
Comments
#1
Marking as bug. Will investigate.
#2
Ditto for me. Will see if I can spot anything in the module limiting it to 15 per attribute.
#3
Any help is appreciated.
#4
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! :)
#5
subscribing - but for me it is possible to save 20 option images - then no additional image is saved but older once are deleted?!
#6
That's interesting! Are you using the module unpatched, or with these suggested changes?
http://www.pridedesign.ie/content/ubercart-option-images-installs
#7
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.
#8
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?
#9
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
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
#10
Hi,
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 40I 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
#11
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 :)
#12
GREAT. I'm glad that helped you as well! I wonder if this will solve the problem for ColinMctavish as well
#13
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.
#14
Howdy see #1030442: Coding standards, file upload limit - mega patch
#15
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..