Author Topic: Uploading image attachments/blank screen  (Read 832 times)

Offline HackAl

  • Semi-Newbie
  • *
  • Posts: 57
Uploading image attachments/blank screen
« on: July 24, 2016, 09:47:43 PM »
Hi Everyone.

Trying to upload images (anything bigger than 2MB, or thereabouts) results in blank screen.

All limits are set to 0 in Attachments & Avatars. (Unlimited).

Plenty of space on Hostdime server and directory. Hostdime is coming up empty-handed and sent me here. They provided this for review:

Thanks for any suggestions.  I'm using 2.0.11.

Offline HackAl

  • Semi-Newbie
  • *
  • Posts: 57
Re: Uploading image attachments/blank screen
« Reply #1 on: July 24, 2016, 10:27:10 PM »
Maybe this is problem:

I did do some testing and when SMF changes the memory limit in the graphics subs it limits the max resolution to 4726 x 4726 or equivalent. This is hard coded in the graphics subs, so it doesn't matter if your host ups your memory, you still can't use it because SMF lowers it in the resize function.

The images I'm trying to upload are bigger that 4726.

Online aegersz

  • SMF Hero
  • ******
  • Posts: 1,631
  • Gender: Male
  • the "mods and tweaks" junkie
    • aegersz on GitHub
    • dopetalk (drugs and users)
Re: Uploading image attachments/blank screen
« Reply #2 on: July 25, 2016, 04:55:24 AM »
I had the same problem and I had to increase the upload filesize thresholds in both Apache and php ... see Method 1 in
The configuration of my Linux VPS (SMF 2.0 with 150 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline Rickard

  • Jr. Member
  • **
  • Posts: 233
  • Gender: Male
    • Värmepumpsforum
Re: Uploading image attachments/blank screen
« Reply #3 on: February 08, 2018, 02:42:56 AM »
I have similar problems with .JPG images from a member.
He sent me the images (4032 px 2.2 Mb) and i didnt succes either, but if i open in photoshop and save it again, no matter the px size or MB sixe, it works.
The images he sent had .JPG ending, i have tried both .jpg and .JPG and as soon as i save the file again, it works fine to attach the image.

If i try to attach the images he sent me, it always ends with a blank screen and no post added to the topic.

Any ideas?
Admin for 3 forums:
SMF 2.0.15
Default Theme: CS Manual by crip
Simple Portal 2.3.7
Got my own hosted and managed server on

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,363
Re: Uploading image attachments/blank screen
« Reply #4 on: February 08, 2018, 05:06:04 AM »