Uploading/optimising File Problems
Permalink Browser Info Environment
Hello Emerii
I wanted to report a problem with the uploader/optimiser.
My client was not able to work on the new version of her website for some time, so I am just getting back to you about this now. We are still in development.
She was having problems uploading/optimising large quantities of pictures, a problem that she did not have with GalleryES in Concrete5.6
I looked through your documentation, and saw the note about uploading in batch, and tried changing the memory limit as suggested. ( I changed to 64M) This broke Concrete5.
I then tried batch uploading/optimising 30 pictures. 4 pictures did not get loaded.
I tried a smaller batch - the same pictures didn't get loaded.
I thereafter tried loading the guilty parties - individually. No go.
Strange is, that the failed uploads all vary in size. The largest is 8mb, the smallest is 3.9.
Other, even larger pictures loaded and were optimised no problem.
It is too bad that this feature is not working. My client is a Photographer/Artist, and she produces files of varying size. I can make her do the batch size/optimisation herself, but it is really one of the great aspects of this add-on. We never expected it wouldn't work in 5.7.
Is there a glimmer of hope? Is this a problem you are working on?
Thanks
Arlene
I wanted to report a problem with the uploader/optimiser.
My client was not able to work on the new version of her website for some time, so I am just getting back to you about this now. We are still in development.
She was having problems uploading/optimising large quantities of pictures, a problem that she did not have with GalleryES in Concrete5.6
I looked through your documentation, and saw the note about uploading in batch, and tried changing the memory limit as suggested. ( I changed to 64M) This broke Concrete5.
I then tried batch uploading/optimising 30 pictures. 4 pictures did not get loaded.
I tried a smaller batch - the same pictures didn't get loaded.
I thereafter tried loading the guilty parties - individually. No go.
Strange is, that the failed uploads all vary in size. The largest is 8mb, the smallest is 3.9.
Other, even larger pictures loaded and were optimised no problem.
It is too bad that this feature is not working. My client is a Photographer/Artist, and she produces files of varying size. I can make her do the batch size/optimisation herself, but it is really one of the great aspects of this add-on. We never expected it wouldn't work in 5.7.
Is there a glimmer of hope? Is this a problem you are working on?
Thanks
Arlene
Type: | Discussion |
---|---|
Status: | Resolved |
Hello, can you try to upload those pictures directly in the file manager (rather from my uploader), and does the file manager give you any errors or produce the same result?
I have ran into this problem before, and sometimes it wont upload a file no matter what I do! I had to open the image in photoshop and resave it as a different format/file.
If you can upload to the normal file manager in concrete5, would you please send me a picture sample?
I have ran into this problem before, and sometimes it wont upload a file no matter what I do! I had to open the image in photoshop and resave it as a different format/file.
If you can upload to the normal file manager in concrete5, would you please send me a picture sample?
The 8Mb image upload failed - I got a "not enough space" message (attached)
The 3.9 Mb image loaded and created 10 (!) thumbnails.
I will send the 2 pictures by PM
The 3.9 Mb image loaded and created 10 (!) thumbnails.
I will send the 2 pictures by PM
I managed to upload both files just fine on my server with playing with my PHP settings. here's what I think can help you:
The 10 thumbnails are created because of the default thumbnail settings in Concrete5. If you visit yoursite.com/dashboard/system/files/thumbnails you can see there are 5 thumbnail types. Concrete5.7 automatically creates a regular and a retina version of each type, so 5x2 = 10. This obviously eats up mega resources on large file uploads!!
You can probably safely delete the Small Image, Medium Image, and Large Image types if you don't use them anywhere else.
It looks like you got the max-upload to work for you if you are getting memory errors.
For the out of memory error, you'll have to raise your max memory PHP (memory_limit) can use in your php.ini file, its default somewhere around 128mb if I remember correctly. Try putting it at 256mb to start, if that's still not enough try 512mb, (it depends on how much memory you system can spare after that). Sometimes you might have to restart the PHP process or the server to get the changes to take effect though.
I was able to successfully process the 8MB file when setting my memory_limit to 512mb, but every server is different.
Once I found the right settings I was able to upload both images you sent me at once using my uploader, and also using the Concrete5 manager.
Let me know if you need any help with the php.ini settings, dealing with large pictures is tricky, PHP is meant for smaller things (doesn't mean you can't push it though!) and it also depends on how fast your processor on the server is.
The 10 thumbnails are created because of the default thumbnail settings in Concrete5. If you visit yoursite.com/dashboard/system/files/thumbnails you can see there are 5 thumbnail types. Concrete5.7 automatically creates a regular and a retina version of each type, so 5x2 = 10. This obviously eats up mega resources on large file uploads!!
You can probably safely delete the Small Image, Medium Image, and Large Image types if you don't use them anywhere else.
It looks like you got the max-upload to work for you if you are getting memory errors.
For the out of memory error, you'll have to raise your max memory PHP (memory_limit) can use in your php.ini file, its default somewhere around 128mb if I remember correctly. Try putting it at 256mb to start, if that's still not enough try 512mb, (it depends on how much memory you system can spare after that). Sometimes you might have to restart the PHP process or the server to get the changes to take effect though.
I was able to successfully process the 8MB file when setting my memory_limit to 512mb, but every server is different.
Once I found the right settings I was able to upload both images you sent me at once using my uploader, and also using the Concrete5 manager.
Let me know if you need any help with the php.ini settings, dealing with large pictures is tricky, PHP is meant for smaller things (doesn't mean you can't push it though!) and it also depends on how fast your processor on the server is.
Thank you Emerii - this worked.
For others out there, who wish to change server settings - be sure to log out of the Concrete5 dashboard before fiddling around. If you are still logged in, C5 will stop working.
For others out there, who wish to change server settings - be sure to log out of the Concrete5 dashboard before fiddling around. If you are still logged in, C5 will stop working.
I went over to the C5 file manager. All those missing pictures are there, but listed as 0,0 kb. If I click "Edit" they are in the database, but full size (original) not optimised or reduced.