[support] Fatal error: Allowed memory size

Warren Vail warren at vailtech.net
Mon Jul 11 18:48:03 UTC 2011


I'm not sure why this worked, but on my shared hosting environment I was
able to create a empty php.ini file in my home directory with the one
overriding entry in it and it seemed to be merged with the other entries
when executing on my account, much the same way modules in my
sites/all/modules folder override or supplement those in the core Drupal.

 

Warren Vail

Vail Systems Technology

warren at vailtech.net

(510) 444-5380

  _____  

From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Kevin Anderson
Sent: Monday, July 11, 2011 1:37 PM
To: support at drupal.org
Subject: Re: [support] Fatal error: Allowed memory size

 

Shai,

I have contacted my hosting provider and they said i dont have access to my
php.ini file... any other solution?

On 11/07/11 9:51 AM, Shai Gluskin wrote: 

Kevin, 

 

You only want to set this in ONE place. Otherwise, you won't know what
overrides what and which setting is authoritative.

 

So...

 

1.	Set memory limit in only one place, remove any other custom code
other than in once place.
2.	Set it for 96MB minimum
3.	Go to the "Status" page to confirm the amount of memory available to
your installation ( at /admin/reports/status)

Report back,

 

Shai Gluskin

 

On Mon, Jul 11, 2011 at 3:33 PM, Kevin Anderson
<kevinanderson1989 at gmail.com> wrote:

I have also read that you can go to the setting.php file and add a line of
code... i have done this also have added a line of code in the htaccess file
aswell but only to 32MB should I up the size in these files aswell?


On 11/07/11 9:05 AM, Shai Gluskin wrote: 

Thanks Jamie for that reference; that's a good docs page. 

 

But Kevin, don't be confused by the example. I think that doc was written
when most shared hosts defaulted to 8MB or 16MB and so upping it to 32MB
made a difference. Given the error message you reported, you already have
32MB of available memory. But it still isn't surprising that you get the
error, depending on what version of Drupal you are using and what modules
you have installed. I have my own server and my master php.ini is for
accounts to have 128MB of memory available for Drupal.

 

Shai

 

On Mon, Jul 11, 2011 at 11:53 AM, Jamie Holly <hovercrafter at earthlink.net>
wrote:



http://drupal.org/node/207036 

Jamie Holly
http://www.intoxination.net 
http://www.hollyit.net


On 7/11/2011 2:25 PM, Kevin Anderson wrote: 

I am having trouble when working with drupal actually up on the server.
Everytime I save something it gives me this error.


"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 45 bytes) in
/data/16/1/19/132/1508295/user/1622796/htdocs/wordpress/sewerratracing/inclu
des/database.mysql.inc on line 160"

it seems to be a different path every time but the same message.

has anyone encounterd this? and have any solotions? 

Thanks, Kevin


--
[ Drupal support list | http://lists.drupal.org/ ]

 

 


--
[ Drupal support list | http://lists.drupal.org/ ]

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110711/0f5c2186/attachment-0001.html 


More information about the support mailing list