News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Uploading a large image attachment using SMF fails

Started by bousra, January 13, 2015, 10:22:12 PM

Previous topic - Next topic

bousra

I try to upload a large image attachment using SMF but I receive a white screen after it process the upload finish.

i appreciate for your help.

Arantor

OK... so how large was the attachment? What type of file was it?

bousra


Arantor

Hmm, well, a white screen after uploading usually means a PHP limit is being hit.

What version of SMF?


Arantor

2.0 as in 2.0.0? As in 9 versions behind 2.0.9 the current version?

bousra


Arantor

OK... and how big (in pixels) is the JPG file? Just trying to narrow down the possible causes here.


Arantor

As suspected, that's a very large image, larger than SMF was ever designed to deal with. It's failing when it tries to make the thumbnail image for it.

You can try changing the memory limit during the thumbnail generation stage - changing Sources/Subs-Graphics.php
Code (find) Select
@ini_set('memory_limit', '90M');

Code (replace) Select
@ini_set('memory_limit', '384M');

That should be enough for the image described. It is a huge image.

bousra


Advertisement: