Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi everyone!

While trying to implement an image securefile field, I noticed that when I try to upload a large image (4400 x 3000 px) the server respond with a nice "Error 500". A couple of things to mention:
1) there is no ImageMagick installed on server, only GD.
2) while using a small PHP script based on GD to resize that kind of large images, it works without a glitch
3) I've changed in securefile.php $default_max_size, $default_max_width and $default_max_height to 8192

What can I do in order to use securefile with large images? Thanks a lot!
Hi,

It could be a memory issue - try increasing that as suggested in this post: viewtopic.php?p=21623#p21623

If that does not help, take a look at your web-server's error log to know what the error is and let us know.

You can find some of the possible errors being discussed in the following thread - viewtopic.php?f=4&t=7427
Thanks KK for your quick answer. I changed the limits, but error still shows up. Anyway I can provide some more info about this:
1) if the file that I upload is zip, the upload process work flawlessly
2) if I upload an image (as securefile) even though the "500 error" shows up, the file is uploaded to uploads/attachments. So I suppose something is buggy in in "post-processing images" code...

Any thoughts on this?

P.S. By using "standalone" version of TimThumb I can work with large images, no problems encountered.
I think the error log of your web-server would give us the exact cause for the error.
Could you please take a look at it and let me know what you see reported?
Hi KK!
Solved the issue by deleting (commenting out) 'memory_limit' - line 50 - from timthumb.php. It seems the default memory_limit setting on hosting server is 128 MB.

But now I have another question: I saw that is a kind of "hit counter" implemented in CMS. It is possible to use it to limit the number of times a file can be downloaded?

Thanks!
5 posts Page 1 of 1