robin Posted July 2, 2009 Share Posted July 2, 2009 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?) 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted July 2, 2009 Share Posted July 2, 2009 Increase the memory allocation again - 128 or even more. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 2, 2009 WHMCS Support Manager Share Posted July 2, 2009 Yup, 128 is a good starting point; 256 if necessary. 0 Quote Link to comment Share on other sites More sharing options...
yabdab Posted August 1, 2010 Share Posted August 1, 2010 Mine is 256 and I still get this error. I have turned off PDF invoicing until a solution can be found 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted August 1, 2010 Share Posted August 1, 2010 Mine is 256 and I still get this error. I have turned off PDF invoicing until a solution can be found Try 512 then 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 1, 2010 Share Posted August 1, 2010 Robin, take a look here http://forum.whmcs.com/showpost.php?p=140844&postcount=13 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.