Welcome Guest, Not a member yet? Register   Sign In
Working With Images
#1

[eluser]Sunray Scott[/eluser]
When using the Image Manipulation class, I often get the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13824 bytes) in /home/sunray/public_html/upload/R3Marketing/system/libraries/Image_lib.php on line 1157

Where can I change the memory limitation? I have the class configured to use GD 2. Thank you.

Scott
#2

[eluser]jedd[/eluser]
[quote author="Sunray Scott" date="1249066337"]
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13824 bytes) in[/quote]

Hi Sunray Scott and welcome to the CI forums.

This is a PHP problem, not a CI one.

You need to modify your php.ini file.

I'll assume, since you haven't said any different, that you're running the same operating system that I am.

Consequently you need to change the file:
/etc/php5/apache2/php.ini

You'll find a line that starts with:
memory_limit

I'm guessing it's set to 32M.

Try changing it to 128M (or whatever you feel comfortable with) and then restart apache.
#3

[eluser]Sunray Scott[/eluser]
Thank you for the response. Working with CodeIgniter has been fun. I am used to bloated frameworks. I prefer light-weight frameworks. I am a fan of MFC as it is a light abstraction of the Windows API but .net is taking over.

Scott




Theme © iAndrew 2016 - Forum software by © MyBB