By wreckage on
Hello there.
Can anybody give me a hint with this error that occurs when I add [/update.php] to my URL after an upgrade from 7.1.2 to 7.1.4? The rest of the site seems ok so far, but it's still 'in development' so hard to tell yet:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /mounted-storage/home2/sub002/sc18297-SNVA/www/[site_name]/includes/install.inc on line 104
All tips appreciated, thank-you.
Regards,
Comments
Increase memory limit
Not sure (yet) what is causing the error for you, however what may bypass it is increasing the memory limit for PHP. Currently yours is set to only 32MB, which is too low for a Drupal site. I'd recommend doubling (or more) this amount. This is done within your server's php.ini file. You may need to check the documentation for your specific server software (or check with your web host if this is a public server) to determine how to change this value.
PHP Memory
Thank-you keyz and Chris.
Your advice seems to be at odds with other advice I have been given re. how to increase the php memory.
I have been previously advised to enter the string: [php_value memory_limit 128M]
into my .htaccess file, NOT the php.ini file.
I have done this, and my Drupal Status report now says that I have 128M memory.
I updated my database and this time I received no error, and 7 updates were installed.
Can somebody please explain to me the differences in using the .htaccess method as opposed to the php.ini method? Is the .htaccess file looked at first, thus negating the need for a php.ini file?
Thank-you all for your help. Either way, this issue is resolved.
Thank-you.
Regards,
php.ini is the main
php.ini is the main configuration file for the PHP application itself, and on a dedicated or VPS server, you should usually edit this file (or when you have cPanel or certain other control panels, you edit the settings through a form). On a shared host, sometimes they permit you to override a certain limited set of PHP settings (such as memory limit, in some cases) using either your .htaccess file, or a php.ini file that is local to your own account (it depends on the host).
Increase memory up to at least 512 MegaBytes (512M)
I am just an end-user that has had PHP memory problems before,
but I did write the following two tutorials that I intended to be definitive guides
for resolving the problem as I had been experiencing it.
The guides below will also tell you how to establish the true amount
of php memory your site is operating with.
To get 128MB of PHP memory, via the file
[root]/php.ini
see...
Drupal 7 "Fatal error: Allowed memory size of ..."
http://drupal.org/node/76156#comment-4582924
To get an increase beyond 128MB via the [root]/sites/default/settings.php file ...
Drupal 7 memory increase to more than 128M
http://drupal.org/node/76156#comment-4583384
- Chris
.
.
All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *