ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Image Attachment Failure in Forums

April 08, 2008 11:05pm

Subscribe [2]
  • #1 / Apr 08, 2008 11:05pm

    JimGoings

    44 posts

    When attempting to attach a 1500x1500 pixel image to a forum post, I get a blank white screen after clicking submit with no errors.

    When attempting to attach a 1000x1000 pixel image to a forum post, I get the following error:
    Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 4000 bytes) in /home/24535/domains/dragonavenue.com/html/dnd4sys/core/core.image_lib.php on line 495

    Both images are less than 100K in size.

    Images are allowed to be 1500x1500 within the EE settings.  Any ideas on how I can address the issue?

  • #2 / Apr 09, 2008 2:10am

    Ingmar

    29245 posts

    When attempting to attach a 1500x1500 pixel image to a forum post, I get a blank white screen after clicking submit with no errors.

    That’s PHP running out of steam memory.

    When attempting to attach a 1000x1000 pixel image to a forum post, I get the following error:
    Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 4000 bytes) in /home/24535/domains/dragonavenue.com/html/dnd4sys/core/core.image_lib.php on line 495

    Here it’s got at least enough breath left to tell you it’s dying 😊

    Both images are less than 100K in size.

    Size doesn’t matter (much), it’s the resolution, the width x height in pixels that’s important.

    Images are allowed to be 1500x1500 within the EE settings.  Any ideas on how I can address the issue?

    Allocate more memory to PHP, or, rather, have your host do it. You’ve got 12MB, from what I can tell, which is a little sparse for images and such. Try at least 16MB, more if they let you.

  • #3 / Apr 09, 2008 3:09am

    JimGoings

    44 posts

    Bingo!

    I upped the PHP memory limit to 18MB and decreased allowed size to 1000x1000.  That should nip the issue in the bud.

    Thanks for the thorough help Ingmar!  A+ gold star for you!

  • #4 / Apr 09, 2008 4:35am

    Ingmar

    29245 posts

    My pleasure. Glad it’s solved, it’s quite a common issue.

  • #5 / Apr 09, 2008 10:19am

    Robin Sowell

    13255 posts

    😉  Yep- it’s nice to see the warning- sometimes it’s just a white screen, which can make things trickier to track down.  Glad you’re squared away.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases