mbsmt Posted November 8, 2014 Share Posted November 8, 2014 Hi. I have WHMCS version 5.2.17. I have problem on sending invoice emails to customers. Cronjob works well even for everything, and sends reports every day to my email address. But when an invoice needs to be created, after its creation, cronjob stops working. Below is a snapshot after running cron job using SSH. Please help me. 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted November 28, 2014 Author Share Posted November 28, 2014 I've updated WHMCS to 5.3.10 but the problem still exists . Is there not anyone who can help me? Now I think Cron Job stops after creating first invoice! 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted November 28, 2014 Share Posted November 28, 2014 Try running it with a debug option (php -q /your whmcs path/admin/cron.php debug) and look for errors. 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted November 28, 2014 Author Share Posted November 28, 2014 Try running it with a debug option (php -q /your whmcs path/admin/cron.php debug) and look for errors. I ran this code before. Again I ran it and this is the result: Starting (Time: 0.72 Memory: 12.13) Running Pre-Cron Hooks (Time: 0 Memory: 12.13) Starting Generating Invoices (Time: 0 Memory: 12.13) Invoicing Loop Service ID 58 - 1 of 7 (Time: 0.01 Memory: 12.13) Invoicing Loop Service ID 115 - 2 of 7 (Time: 0 Memory: 12.13) Invoicing Loop Service ID 114 - 3 of 7 (Time: 0 Memory: 12.13) Invoicing Loop Service ID 110 - 4 of 7 (Time: 0 Memory: 12.13) Invoicing Loop Service ID 111 - 5 of 7 (Time: 0 Memory: 12.13) Invoicing Loop Service ID 112 - 6 of 7 (Time: 0 Memory: 12.13) Invoicing Loop Service ID 113 - 7 of 7 (Time: 0 Memory: 12.13) Generated Invoice #2159 (Time: 0 Memory: 12.13) And here command stoped running and stayed with not more action ... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 1, 2014 WHMCS Support Manager Share Posted December 1, 2014 Hi, As you see some Cron Job entries but no "Cron Job: Completed" entry this suggests the cron is being terminated prematurely by your server. Please increase the memory_limit setting in your server's php.ini to 64M or 128MB which should easily be sufficient. It would also be worth increasing the max_execution_time setting. Then see if things improve and you start getting the cron job report again over the next few days. 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted December 1, 2014 Author Share Posted December 1, 2014 Hi,As you see some Cron Job entries but no "Cron Job: Completed" entry this suggests the cron is being terminated prematurely by your server. Please increase the memory_limit setting in your server's php.ini to 64M or 128MB which should easily be sufficient. It would also be worth increasing the max_execution_time setting. Then see if things improve and you start getting the cron job report again over the next few days. Current memory_limit is 128MB and max_execution_time is 30. Also I checked running Cron job. It received to generating first invoice after just some seconds (about 3-5 second) and stopped working after that. So execution time must not be the issue. It's a strange problem ... 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted December 1, 2014 Share Posted December 1, 2014 Check your PDF invoice template for errors? 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.