Hello!

I'm trying to upgrade my server.

I have Drupal 5.1 on a server with Apache2, PHP4 and MySql 5. Before upgrading Drupal to 5.7, I want to upgrade the PHP on the server to PHP5, but when I upgrade it I have this big problem:

"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 89800 bytes) in /var/www/includes/database.mysql.inc on line 188"

This error is very extrange because it only appears with PHP5. PHP4 isn't very well supported on my distro with the latest versions of Apache2 and MySql.

Can you help me? How can I make it work?

Thanks for all.

P.S. Sorry for my "not very good" english ;)

Comments

pcs305’s picture

What is your "memory_limit " set to in php.ini?
Try setting it higher if you have it defined, els if you do not, try setting it to say 32M,

EDIT:
If you don't have access to your php.ini try adding the following to your sites/all/settings.php

ini_set('memory_limit', '32M');

rernst’s picture

that limit is 128MB... setting it to less isn't going to do any good.

Lk2’s picture

I tried that (I forgot said).

I test with 130 MB, 256MB and 512 MB (I know that it's a very high limit), and I always habve the same error.

Of curse, I put 128MB again :)

rernst’s picture

Are you using any modules which are known to be memory-intensive? If so, you might want to check those out.

What you're facing is a memory exhaustion issue: PHP is trying to allocate more memory than it is permitted. 128 MB is a very high limit, so I believe your issue is with a php5-specific bug in one of the modules you use. Which one? I can't say without seeing a list...

The first debugging steps you can take are to disable a few modules at a time and see if this error goes away. If you can narrow it down to a particular module you should check the issue tracker for that module.

Lk2’s picture

I don't know what modules are loaded, but I can see it in the database.

My problem is that, for now, I can't change anything on the real server and I have to do the changes in a test server with a copy of the filesystem and database of Drupal, and I cant go ahead to PHP4 because my distro-specific issues (the test server's one).

I tried the debugging that you recommend and, in this morning, I will post again :)

Thanks to all!