CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal PHP memory error - even with 96M set in php.ini
Pages: [1]

Author Topic: Fatal PHP memory error - even with 96M set in php.ini  (Read 2284 times)

nihow

  • Guest
Fatal PHP memory error - even with 96M set in php.ini
May 04, 2009, 05:08:33 am
I'm (still) troubleshooting a series of problems with a drupal install - D6.11 + CiviCRM 2.2.2 on a VPS with 512Mb of RAM. phpinfo() reports 96Mb of RAM available (i.e. exactly what I've allocated in the system-wide php.ini and the local instance of same). PHP version is 5.2.9. I've hardened PHP with suhosin and suphp and suExec is on.

I'm getting a number of errors along the lines of:

Fatal error: Out of memory (allocated 20971520) (tried to allocate 19456 bytes) in .../public_html/modules/menu/menu.admin.inc on line 420

Its a fresh install of CiviCRM to an empty DB inside a fresh install of Acquia Drupal. Many of the modules that come with Acquia have been disabled.

Other contributed modules are producing similar errors - CCK and Date modules in particular.

I could up it to 128Mb, but surely 96Mb should be enough RAM? Anyone else got any ideas?
« Last Edit: May 04, 2009, 05:30:14 am by nihow »

nihow

  • Guest
Re: Fatal PHP memory error - even with 96M set in php.ini
May 04, 2009, 05:48:12 am
Nope, upping the memory limit doesn't fix it. phpinfo{} displaying the correct allocation, but same problems.

/admin/build/block/list worked once, but after enabling the sync members/sync groups modules, this error:

Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in public_html/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php:217 Stack trace: #0 public_html/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php(108): IDS_Filter_Storage->getFilterFromXML() #1 public_html/sites/all/modules/civicrm/packages/IDS/Monitor.php(167): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 public_html/sites/all/modules/civicrm/CRM/Core/IDS.php(131): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #4 public_html/sites/all/modules/civicrm/drupal/civicrm.module(339): CRM_Core_Invoke::invoke(Array) #5 [internal function]: civicrm_invoke('dashboard') #6 public_html/includes/menu.inc(348): call_user_func_array('civicrm_invoke', Array) #7 public_html/index in public_html/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php on line 217


If I uninstall the CiviCRM module, Drupal returns to normal behaviour. Lobo, Dave... anyone... I'm flailing about here!

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal PHP memory error - even with 96M set in php.ini
May 04, 2009, 06:29:59 am
Quote from: nihow on May 04, 2009, 05:08:33 am
phpinfo() reports 96Mb of RAM available (i.e. exactly what I've allocated in the system-wide php.ini and the local instance of same). […]

Fatal error: Out of memory (allocated 20971520) (tried to allocate 19456 bytes) in .../public_html/modules/menu/menu.admin.inc on line 420

The above means that Drupal is only allowed to use 20 MiB. Can you try putting the phpinfo() call in the public_html/modules/menu/menu.admin.inc file and check whether it still sees 96 MiB there?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal PHP memory error - even with 96M set in php.ini
May 04, 2009, 07:10:08 am

you might want to try disabling some of the additional modules (suhosin, suphp etc) and see if that changes the memory situation

seems like the other scripts dont read the info from php.ini which is not normal behavior for most sites

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nihow

  • Guest
Re: Fatal PHP memory error - even with 96M set in php.ini
May 04, 2009, 02:38:45 pm
Thanks Piotr & Lobo.

I'll try your suggestions and post back. Would having a memory_limit call in two separate php.ini files be a possible issue?

nihow

  • Guest
Re: Fatal PHP memory error - even with 96M set in php.ini
May 04, 2009, 10:59:39 pm
I've added a phpinfo{} call to one of the troublesome includes - returns a local memory_limit  of 96M and a mater value of 128M. Now  I'll turn off suphp and report back.

nihow

  • Guest
Re: Fatal PHP memory error - even with 96M set in php.ini
May 05, 2009, 03:41:17 am
Now I can't get rid the phpinfo{}!!!!! I've deleted it from the include, but I guess it has been parsed to another file. I'm a bit of a dummy when it comes to PHP - does anyone know where it might be?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal PHP memory error - even with 96M set in php.ini
May 05, 2009, 07:26:11 am
Quote from: nihow on May 05, 2009, 03:41:17 am
Now I can't get rid the phpinfo{}!!!!! I've deleted it from the include, but I guess it has been parsed to another file. I'm a bit of a dummy when it comes to PHP - does anyone know where it might be?

It means that you either left it in some other place or there’s some cache misconfiguration. Can you try reloading the page when bypassing the cache (by shift-clicking the reload button in the browser, for example)?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal PHP memory error - even with 96M set in php.ini

This forum was archived on 2017-11-26.