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 CiviMail (Moderator: Piotr Szotkowski) »
  • Fatal Error when running CronJob
Pages: [1]

Author Topic: Fatal Error when running CronJob  (Read 1050 times)

helpmeplease

  • Guest
Fatal Error when running CronJob
September 10, 2009, 03:47:23 pm
I get the following error when the Cron Job runs:
Fatal error: Out of memory (allocated 20447232) (tried to allocate 35 bytes) in /home/..../..../administrator/components/com_civicrm/civicrm/CRM/Utils/Array.php on line 52

I called hostgator and they informed me that I have 64MB for PHP RAM. What can I do to correct this?

Civi 2.2.8 / Joomla 1.5.12

helpmeplease

  • Guest
Re: Fatal Error when running CronJob
September 11, 2009, 08:10:13 am
Also when the CronJob runs it creates a file in my root directory I'm getting this error inside the file.

Fatal error:  out of dynamic memory in yy_create_buffer() in <b>/home/.../public_html/.../administrator/components/com_civicrm/civicrm/packages/Log.php on line 163

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Fatal Error when running CronJob
September 11, 2009, 10:15:35 am
if your host won't give you any more memory and your php is erroring out because of memory, your best bet is probably to change hosts....

you could try adding these two lines to the top of the php civimail cronjob file itself:
Code: [Select]
set_time_limit(0);
ini_set(memory_limit,'1536M');

HOWEVER, that could 1) get you into trouble with your host as you're trying to get around specific parameters they set and 2) it might not work depending on how strictly they are enforcing that.

helpmeplease

  • Guest
Re: Fatal Error when running CronJob
September 11, 2009, 10:21:46 am
Thank you so much for you help. I will try this and get back to you.

helpmeplease

  • Guest
Re: Fatal Error when running CronJob
September 11, 2009, 10:29:32 pm
I tried this and I'm getting the same error. Could any offer some advice for me?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Fatal Error when running CronJob

This forum was archived on 2017-11-26.