Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By somatics on
We have CiviCRM 2.2.9 running and it seems to work fine, but when we try to upgrade we keep encountering memory errors like the following:
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 71 bytes) in /rootpathtodrupal6/sites/all/modules/civicrm/CRM/Core/Error.php on line 416
We got a few others that were similar but referenced a Civicrm file called array.php instead, etc.
I increased the memory allocation in php.ini from 1024M to 2048M, and still got this kind of error.
We need to upgrade this to run 3.x as soon as possible. We have tried unsuccessfully to correct the memory errors on our own. Anyone who can upgrade this or tell us what to do?
Thanks!
Comments
was apache reloaded ?
was apache reloaded ? sometimes this may have been missed. also, it would help to confirm your php.ini location using phpinfo() to see if it's the right file that's edited.
hth
yashesh
Yashesh Bhatia
Server was rebooted
Thanks for the reply. When you say reloaded, do you mean was Apache stopped and started to make sure it loaded in the new memory usage settings?
Yes, I actually rebooted the server machine. And when I looked at Drupal's System Info > PHP report, it said it was using the correct php.ini file, and the System Status report says the PHP Memory Limit is "2048M".
yep.. i did mean reloading
yep.. i did mean reloading the php.ini file by either restarting apache or "reload". it does look like you've got the right php.ini settings for the drupal site. wonder why/where it would change only for civicrm to 1024 :(. beats me. sorry.
yashesh
Yashesh Bhatia