Advertisement:

Author Topic: 500 Internal server error after file upload  (Read 1541 times)

Nelmzy

  • Newbie
  • *
  • Posts: 2
500 Internal server error after file upload
« on: February 06, 2014, 02:13:40 pm »
Hi everyone,
i have just done a fresh install of v3.3.2 and whenever admin or users try's to upload a photo bigger than 500kb the page will return a 500 Internal server error.

i have checked my error logs and it has returned the following:

0140201T011305: buyswapsell.net/index.php
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 13056 bytes) in /hermes/bosweb/web169/b1693/dom.buyswapswellcom/buyswapsell.net/oc-includes/osclass/classes/ImageResizer.php on line 54
 
20140201T011923: buyswapsell.net/index.php
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 1403648 bytes) in /hermes/bosweb/web169/b1693/dom.buyswapswellcom/buyswapsell.net/oc-includes/osclass/classes/ImageResizer.php on line 53

Has anyone experienced this yet or now of a solution. Any help would be great.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: 500 Internal server error after file upload
« Reply #1 on: February 06, 2014, 02:48:18 pm »
HI,

32MB of RAM max for PHP is way too short, see if this procedure works for you:

http://doc.osclass.org/Increasing_memory_allocated_to_PHP

If it's not working, ask your hosting to raise that limit or switch to another hosting, otherwise this will be only the first headache in a long chain of them.  :(

Regards

Nelmzy

  • Newbie
  • *
  • Posts: 2
Re: 500 Internal server error after file upload
« Reply #2 on: February 06, 2014, 03:55:06 pm »
Thank you very much teseo this seems to have done the trick

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: 500 Internal server error after file upload
« Reply #3 on: February 06, 2014, 04:01:53 pm »
Glad to hear that, you're welcome. :)

Please add "[SOLVED]" to the title of this thread for it to be useful to others fellows in the same situation.

Regards