Advertisement:

Author Topic: ImageResizer.php errors  (Read 1324 times)

frgds

  • Newbie
  • *
  • Posts: 14
ImageResizer.php errors
« on: April 02, 2015, 01:29:42 am »
hi
I always have this error : Fatal error: Out of memory (allocated 85983232) (tried to allocate 13056 bytes) in /XXXXXXXXXXX/oc-includes/osclass/classes/ImageResizer.php on line 67.

This error is when i try to load a picture more than 500 ko .
 php info show the memory_limit=120M.

I tried a an other  simple script on the same host and directory  witch upload and rezize  a picture of 1.50 Mo  in 240x200 and 480x340 and 640x480 and all works fine witout errors.

The same picture of 1.50 mo produce the error above then i load it from osclass.

The GD library is used because ImageMagick is not installed on this host.

I really don t see where is the problem ?







teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: ImageResizer.php errors
« Reply #1 on: April 02, 2015, 01:44:04 am »
Hi,

Who is hosting your site?

Regards

frgds

  • Newbie
  • *
  • Posts: 14
Re: ImageResizer.php errors
« Reply #2 on: April 02, 2015, 01:49:38 am »
it s 1and1

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: ImageResizer.php errors
« Reply #3 on: April 02, 2015, 02:06:13 am »
http://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/php-c37728/php-memory-limit-a683249.html

You really have about 80 MB max and that 's not enough to run Osclass comfortabily.  :-\

Regards

frgds

  • Newbie
  • *
  • Posts: 14
Re: ImageResizer.php errors
« Reply #4 on: April 02, 2015, 02:16:36 am »
ok but i don t understand why i can do it with a simple script uploading and rezising the picture of 1.5 mo using gd library and  ossclass cant do it with the same picture ......

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: ImageResizer.php errors
« Reply #5 on: April 02, 2015, 03:07:43 am »
Because scripts are what more memory consume, and obviously a small script can't manage everything that a whole CMS like Osclass does...

You should consider moving to another hosting offering at least 128 MB limit, or better, 256 to forget about these kind of problems.

Regards

frgds

  • Newbie
  • *
  • Posts: 14
Re: ImageResizer.php errors
« Reply #6 on: April 02, 2015, 09:30:35 am »
ok thank for all your replies ......