Drupal 6.3 update.php can't run (out of memory)

ShutterFreak - July 10, 2008 - 15:52

While upgrading my personal website from Drupal 6.2 to Drupal 6.3 I hit the 16MB memory barrier. My ISP does not allow more memory for PHP hence I'm a bit stuck now. The error I see when I try to run update.php is:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 453 bytes) in /customers/shutterfreak.net/shutterfreak.net/httpd.www/includes/database.mysql-common.inc on line 35

Is there a way for me to perform the required update statements in smaller steps?

Drupal 6.3 update.php can't run

Stanislav.cz - July 10, 2008 - 17:03

I've got a blank screen, I don't know where is a problem and I don't know how to solve this situation :-(

http://demo.stavimezedreva.cz/update.php?op=info

Stanislav

Blank Screen

2die4 - July 10, 2008 - 17:56

You can increase the limit in your settings.php file with the code
ini_set('memory_limit', '32M');

or try adding the following in your .htaccess file in your Drupal root folder.
php_value memory_limit 32M

If increasing memory doesn't work like that you can also try adding the following in your php.ini file if available
memory_limit = 32M

Stanislav you also may be in the same boat as Shutter and may need to increase your php memory limits, but check everything prior.

You need to make sure you moved all your files over.
Check your theme's template.php file. Check to make sure there is no space after your ending ?>
Also you can check for errors by placing the following code at the top of your settings.php file temporarily in the folder sites/default or by placing it in the top of index.php

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

Hope one of the suggestions help.

Enabled PHP Error logging

ShutterFreak - July 10, 2008 - 18:11

It appears I am not allowed to increase PHP memory size. In other terms, there's no solution for my situation, apart from manually enabling/disabling a module via a database query.

Php Memory exhausted

2die4 - July 11, 2008 - 22:54

or another host Shutter.... :)

.htaccess

Stanislav.cz - July 10, 2008 - 18:50

I restore .htaccess from my back up and start update.php again, with my old .htaccess update.php run OK. I am on 6.3 version now, uff.
Thanks.
Stanislav

Ongoing

jweberg - July 11, 2008 - 18:10

This is an ongoing issue from previous versions too. Is there anyone looking into this from drupal? I'm considering looking into another cms. I like drupal but not being able to run the modules I need is killing me.

Modules, problems, memory and blank screens..

2die4 - July 11, 2008 - 23:09

Sometimes it takes developers and freelancers a little while due to family, school and etc.., but that's what we're all here for. Without any of us there wouldn't be a project and none of the features we have requested in the past or a lot of the problems fixed.

This is a good reason to submit bugs:
http://drupal.org/node/add/project-issue/drupal/bug

And also to check for the latest bugs:
http://drupal.org/project/issues/drupal?categories=task,bug,support

Feature Requests:
http://drupal.org/node/add/project-issue/drupal/feature

Review Feature Requests:
http://drupal.org/project/issues/drupal?categories=feature

I know for one thing, Drupal is way more advanced than most of the CMS' that's Opensource, but takes a little bit of time to get the hang of. If you want to move to better then you might as well get your CC ready, but that doesn't mean it to won't be bug free or without problems too. Trust me I've been an onlooker for some time now.

And another thing, sometimes people start to work on these modules and then abandon them. This is were we should get together to get this solved.

I understand where you're coming from jweberg.

Thanks for the response. I

jweberg - July 12, 2008 - 20:53

Thanks for the response. I was just getting really frustrated. My site pretty much locked down on me and I couldn't edit anything. Do you know if there has been any good resolution to this problem?

Did you see

Stanislav.cz - July 13, 2008 - 16:34

Did you see http://drupal.org/node/281460 ?
Stanislav

Fatal error: Allowed memory size

Mecandes - July 27, 2008 - 18:24

I'm not upgrading; I just installed Drupal 6.3 fresh yesterday. I've enabled a few core modules (not many), and have only installed 2 other modules (the base CCK and Views only), and just one theme (Moleskine). But when I attempt to run update.php as instructed, I get:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 629117 bytes) in .../includes/database.mysqli.inc on line 303.

This occurs even though it appears that no updates are required... so, having 32mb doesn't help much. This seems very bad, considering I've really not even started setting anything up or installing modules yet! (I thought Drupal claims to run okay with less than 16mb, so didn't think I'd have trouble with 32.)

 
 

Drupal is a registered trademark of Dries Buytaert.