mbsmt Posted December 14, 2014 Share Posted December 14, 2014 Hi friends. I've installed WHMCS 5.3.10, but there is a main problem on it (Although I had this problem in the previous versions). Cronjob stops working when it needs to send emails (New invoice, domain renewal reminder, unpaid invoices, etc.). So I have to do everything manually everyday. On the other hand, sending emails after customer's actions (registering new domains, ordering new hosting packages, etc.) does not have any problem and occur completely. Current memory_limit is 128MB and max_execution_time is 30 Please help me. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 14, 2014 Share Posted December 14, 2014 Error log? 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted December 15, 2014 Administrators Share Posted December 15, 2014 Hi, Please begin your troubleshooting at http://docs.whmcs.com/Invoicing_Issues#Invoices.2FPayment_Reminders_not_Generated 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted December 18, 2014 Author Share Posted December 18, 2014 Error log? Nothing ... The process suspended as it want to send the first email. I have to stop the process using SSH everyday and then run the cron.php manually. After that all emails send successfully. So I have problem just when sending emails want to execute through Cron Job automatically. The picture below is what I see in WHMCS logs: - - - Updated - - - Hi,Please begin your troubleshooting at http://docs.whmcs.com/Invoicing_Issues#Invoices.2FPayment_Reminders_not_Generated John, it is not only about invoice generation. The problem belongs to all email sending operations like domain renewal notice, unpaid invoice reminders, etc. 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted December 23, 2014 Author Share Posted December 23, 2014 This is a snapshot while I run cron.php through SSH ( php -q /path/to/cron.php debug ) In just one second (or less), commands receive to the last line and while it was needed to send first email, everything stopped forever. 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted December 24, 2014 Administrators Share Posted December 24, 2014 Hi, Are you able to view the PDF invoice successfully from inside the WHMCS admin area, or do you encounter a blank page/error message? 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted December 24, 2014 Author Share Posted December 24, 2014 (edited) Hi,Are you able to view the PDF invoice successfully from inside the WHMCS admin area, or do you encounter a blank page/error message? If you mean viewing PDF after click on its button in invoice details page, I saw this error in the opened window: TCPDF ERROR: Could not include font definition file: dejavusans But dejavusans.php exists in /include/fonts/ ! However sending PDF invoice through email is disabled in administration panel. Edited December 24, 2014 by mbsmt 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted December 25, 2014 Administrators Share Posted December 25, 2014 Hi, Try choosing a different PDF font under Setup > General Settings > Invoices tab. If you still seem the same error, it suggests that your PDF invoice template has been customised and is causing a problem be referencing a font file which doesn't exist.. Try replacing /templates/*your active template*/invoicepdf.tpl with the defualt version, clear your template cache and try again. 0 Quote Link to comment Share on other sites More sharing options...
mbsmt Posted December 25, 2014 Author Share Posted December 25, 2014 Hi,Try choosing a different PDF font under Setup > General Settings > Invoices tab. If you still seem the same error, it suggests that your PDF invoice template has been customised and is causing a problem be referencing a font file which doesn't exist.. Try replacing /templates/*your active template*/invoicepdf.tpl with the defualt version, clear your template cache and try again. Dear John, thank you for your attention to my problem. I could solve the PDF problem and now I'm able to see PDFs. But the problem still exists. Please note that sending PDF through email to customer is disabled and no PDF must send after invoice creation. Also I had this problem when there was no need to generate any PDF (e.g. domain reminder, invoice reminder, etc.) The interesting point is that when I set cron job using GET method, the problem solved and reports and emails worked fine. But with "php -q" mode, I have the problem ... 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.