Fatal error: Allowed memory size of 33554432 bytes exhausted

Hi everyone. I have installed iis aid and joomla and it is working fine. When i go to upload a small fine to my photo gallery it works fantastic. I tried to upload a 3.5mb file and i keep getting this error.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 14848 bytes) in C:\Inetpub\mywebsite.com.au\administrator\components\com_morfeoshow\helpers\upload.php on line 433.

So i checked these settings in my php.ini file and changed them to a large value.

memory_limit =256M
post_max_size = 40M
upload_max_filesize = 10M

Then i restarted IIS.

But i still get the same error.

Can someone point me into the correct direction

Thanks for your time

Average rating
(0 votes)
Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Increasing the PHP memory limit as you've done is the correct way to address this issue, however if you've increased it to 256MB and you're still getting the same out of memory errors then I'd suspect something else here. Have you verified with the phpinfo() function that your modifications have taken place? Did you install using the ISAPI or FastCGI interface?

----------------
Dominic Ryan
5 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster

tbblitz's picture

Joined: Nov 2009

Send PM

tbblitz said:

yes i have checked that those settings above are in fact changing in the php info page.

I have tried both isapi and fast cgi.

At the moment im using isapi.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

What are your max_execution_time and max_input_time directives set to?

----------------
Dominic Ryan
5 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster

Anonymous's picture

Location: Kolkata

Anonymous said:

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit =20M

tbblitz's picture

Joined: Nov 2009

Send PM

tbblitz said:

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit =256M

even when i raise these values it still outputs the same error.

I am using windows 2003 64bit with exchange 2007.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

If you can, change your mapping to FastCGI. Also, can you PM me with a URL where I can view your phpinfo data?

----------------
Dominic Ryan
5 x Microsoft IIS MVP, MCSE, MCSA
IIS Aid owner/webmaster

Anonymous's picture

Location: Kolkata

Anonymous said:

have a try to change LocalSettings.php
# If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '32M' );