By Lk2 on
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
memlimit
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');128MB
that limit is 128MB... setting it to less isn't going to do any good.
I tried
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 :)
Strange...
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.
I don't know what modules
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!
134217728
At the moment I've found followed bugs related to '134217728 bytes exhausted' issue:
Watchdog - #167424: Cron jobs fail, all connected functionality (search, other modules) ceases to work
Content Access - #145523: Unable to rebuild permissions or install/uninstall module
IP to Country - #115027: Out of Memory on Install
Contemplate - #230885: CCK activates triggers Fatal error
Devel - #234581: Fatal memory size error #229386: Memory leak
Subscriptions - #211070: 1.x - Fatal error: Allowed memory size exhausted in subscriptions.module on line 878
Simplenews - #205798: "Fatal error: Allowed memory size of"...When I click on drupal/?q=admin/content/newsletters/settings
Content Management Filter - #324351: Pager not keeping accurate records on filter
FileField Paths - #325973: multiple upload
Node import - #235433: Out of Memory error when running any import #246746: loop error
...maybe one of them will help;)
Because I still can't find my issue.