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 »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fatal Memory Error on basically any operation (search, contribute, member, etc.)
Pages: [1]

Author Topic: Fatal Memory Error on basically any operation (search, contribute, member, etc.)  (Read 1166 times)

soleer

  • Guest
Fatal Memory Error on basically any operation (search, contribute, member, etc.)
December 21, 2007, 10:04:33 am
Ever since migrating to a new host, almost any action I try to take within CiviCRM results in a Fatal Memory Error.  I recently transferred my account from one host to another, and everything went more-or-less smoothly (besides an array_key_exists() warning, which was solved using these forums!).

I've been searching google and the Civi Forums feverishly for a while now (I hate reposting questions that have already been solved), but haven't found any that help.  So, here it goes:

Stats:
     Drupal: 5.2
     CiviCRM: CiviCRM 1.9.11960

Host:
    Shared - Static IP
    PHP: 5.2.5
    MySQL: 5.0.37
    PHPMemory: 32MB

I can access the CiviCRM administer pages fine, and do a number of tasks, but many other components including: doing any type of search, Clicking on CiviMember, Clicking on CiviEvent, Clicking on Import, all throw me fatal memory errors.  The errors also point to a number of different files:

Quote
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /home/sbdporg/public_html/sites/all/modules/civicrm/packages/Smarty/internals/core.write_file.php on line 43

Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/sbdporg/public_html/sites/all/modules/civicrm/CRM/Core/BAO/UFField.php on line 87

Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/sbdporg/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty_Compiler.class.php on line 298

Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/sbdporg/public_html/files/civicrm/templates_c/en_US/%%70/70A/70AFFDD6%%Search.tpl.php on line 28

Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /home/sbdporg/public_html/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php on line 145

Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/sbdporg/public_html/sites/all/modules/civicrm/CRM/Core/Block.php on line 537
Just to name a few.  I've spoken with my host, and of course they say it's a problem with the Civi module.  Unfortunately I can't increase the memory allocation, but I don't think that's the problem.  My tables are still very small (I only have about 10 contacts), and I'm not trying to do any operations that should be memory intensive.

This problem just cropped up after I changed hosting accounts, and everything worked fine on the previous account.  The files and database should be the same, I don't know what else it could be.  Permissions might not have carried over; permissions issue maybe?

If you have any ideas PLEASE let me know.  I'll try anything!  Thank you so much!

EDIT:

I just created a duplicate test site, so I could run all tests without taking down the main site.  Interestingly enough, when I first install it, and receive all of the array_key_exists() warnings, everything else works (including search, civimember, etc.), and I get no memory errors, but when I reset the civicrm_domain.config_backend value in the MySQL database, the errors go away, but the memory errors begin. 

Not sure if this helps, but I thought it was interesting.
« Last Edit: December 21, 2007, 10:38:57 am by soleer »

soleer

  • Guest
Re: Fatal Memory Error on basically any operation (search, contribute, member, etc.)
December 21, 2007, 01:42:31 pm
Okay,  so after echoing php memory allocations, it looks like a normal drupal page (with civi disabled) is using around 12043216, with civi enabled the same page is using around 17300839, and when I go to the Civi Advanced Search page, (simply click on it, and perform no search) the memory usage jumps to 31195136 (This is with all Civi components: CiviEvent, Member, Contribute, etc. disabled).

Is this normal memory usage?  Is there any way to reduce this?

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 Memory Error on basically any operation (search, contribute, member, e
December 22, 2007, 02:30:43 pm

whats the memory usage when u goto the basic search page, or just any civicrm page? i suspect it will be the same as the advanced search page. This is normal memory usage, would be great to cut this down significantly. However it will probably be time consuming etc. A patch / code to figure out where most memory is consumed and how to reduce it would be highly appreciated

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fatal Memory Error on basically any operation (search, contribute, member, etc.)

This forum was archived on 2017-11-26.