Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Error in GD.php due to image upload

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1519 Views
  • froburg
    Avatar
    Community Member
    8 Posts

    Error in GD.php due to image upload Link to this post

    My client uploaded an image that apparently overloaded my shared server's memory allowance. When I visited the page in the CMS, the image tab gave a Fatal error message in GD.php and no ability to remove the image or do anything. The same error comes up when I try to view that page on the live website. I tried to delete the page, but after I deleted it, I couldn't unpublish it and the page just sat in the CMS with the Fatal error in GD.php instead of showing any of the tabs or content boxes. Trying to log back into the admin area shortly thereafter now gives the same error, so I can't get into the CMS at all:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9620 bytes) in /home2/jfsyork/public_html/sapphire/filesystem/GD.php on line 21

    UPDATE: As I was about to hit submit, I got the idea to erase line 21 from GD.php. I could then log into the CMS, delete the offending page, and then I added line 21 back to GD.php, and everything seems to be working fine! I assume there's some leftover rubbish in the database now but I'm not concerned about that (should I be?)

  • Fuzz10
    Avatar
    Community Member
    786 Posts

    Re: Error in GD.php due to image upload Link to this post

    Same happens if a client uploads a corrupt image. Files / Images stops working and the concerned page throws an error. I'm currently trying to replicate this behaviour.

    1519 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.