Jump to content

WHMCS Cronjob stops working while sending emails


mbsmt

Recommended Posts

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.

Link to comment
Share on other sites

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:

 

Capture.JPG

 

- - - Updated - - -

 

 

John, it is not only about invoice generation. The problem belongs to all email sending operations like domain renewal notice, unpaid invoice reminders, etc.

Link to comment
Share on other sites

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 by mbsmt
Link to comment
Share on other sites

  • WHMCS Support Manager

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.

Link to comment
Share on other sites

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 ...

Link to comment
Share on other sites

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.

×
×
  • 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