This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.2 » Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /hom
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /hom [message #103093] Mon, 26 July 2010 16:16 Go to next message
manjithred  is currently offline manjithred
Messages: 3
Registered: July 2010
Location: India
Junior Member
Hi All,

I am getting an error:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /home/fidussol/public_html/fidus/demo/goanew/lib/model/om/Ba seGoaTreatments.php on line 532

while i call my sfguard user list.

It works perfectly in localhost and php.ini set with 1024MB.

am using symfony 1.2 and Propel.

Please help me.
Re: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in [message #103283 is a reply to message #103093 ] Fri, 30 July 2010 11:37 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Two points: first of all, a web-based PHP process is most unlikely to need 1GB of memory! I would suggest you bring it down to 128MB for a dev machine, and maybe 64MB on a live server.

Your error message is saying that 16MB is too small for your purposes. Find the php.ini in question (and remember there are often two - one for your web process, and the other for the cli) and increase the limit.


Remember Palestine
Re: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in [message #103301 is a reply to message #103283 ] Fri, 30 July 2010 14:39 Go to previous messageGo to next message
manjithred  is currently offline manjithred
Messages: 3
Registered: July 2010
Location: India
Junior Member
Thank you for your reply.
Re: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in [message #103306 is a reply to message #103283 ] Fri, 30 July 2010 14:48 Go to previous message
manjithred  is currently offline manjithred
Messages: 3
Registered: July 2010
Location: India
Junior Member
I tried your suggestion:

My php.ini in the shared server is now having the flowing values

register_globals = on
allow_url_fopen = off
memory_limit =64M
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
#extension_dir = ./
#upload_tmp_dir = /tmp
precision = 12
magic_quotes_gpc = Off
short_open_tag = Off
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


But the error still exist.

I think since my shared server is allocating only 16M for me.

I hosted the same on other server (godaddy) which by default give me memory limit of 64M.
Previous Topic:Generator error: The item has not been saved due to some errors
Next Topic:Update YML from php
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software