Jump to content

Fatal Error: Allowed memory size of....


robin

Recommended Posts

My nightly cron job stopped doing what it was supposed to be doing, and I tonight decided that I needed to figure out the issue.

 

When I ran the cron job directly I received an error that said it needed more memory so I updated the entry in my .htaccess to 64M (it was 32M)

 

Then I ran the job again and received the below message (which other than the size of bytes was the same message I received previously)

 

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 752188 bytes) in /home/AcmeCorp/public_html/clients/includes/class.smtp.php on line 371

 

I had to run my cron job 4 or 5 times manually before I did not see an error of any kind.

 

I've owned this software for a while now, but have only recently brought all of our clients onto the system. Altogether about 200-250 monthly invoices going out.

 

I am running the latest and greatest build (4.2?) of WHMCS.

 

Any assistance would be appreciated.

 

I should also note that I recently upgraded TCPDF as it was throwing similar errors on the old version. Once upgraded I did not see the memory errors. Perhaps the upgrade did not resolve anything.

 

Is it possible that PHP allocates memory and then continues to add to the memory in regard to invoice generation? (ie. missing free() or delete[] or PHP equivalent?)

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated