Jump to content

HELP! Invoices not generated by cron!


LukeDouglas

Recommended Posts

I have WHMCS setup with a cron job to run at 6-6:30am the first of each month using:

 

GET http://<mywebsiteurl>/billing/admin/cron.php

 

I have checked and the cron job matches exactly what the Configuration / Automation settings page tells me to use.

 

I have orders showing 07/01/2009 as the next due date yet no invoices were generated today and it is 7:30pm so it's been over 12 hours since they should have been generated.

 

This has been working justs fine for almost two years and I've made not changes. So I'm really at a loss as to why this didn't generate invoices today.

 

Also, I have noticed that on a few of my clients the Next Due Date sometimes is not changed. In reading some other posts, it seems other people are having this problem. Now if I'm correct, the Next Due Date should be changed after each invoice is generated whether or not the previous invoice has been paid or not.

 

However, I have a client who has had automated invoices for 05/01/2009 and 06/01/2009 which have not been paid yet the Next Due Date is still showing as 05/01/2009. Yet the 06/01/2009 invoice was automatically generated.

 

I contacted tech support at the hosting firm I am using and their tech ran the cron job three different times today. No luck as no invoices were generated.

 

At this point, I don't know what else to check for so if anyone has any suggestion, please reply.

Link to comment
Share on other sites

  • 3 weeks later...

I read these posts and think to myself..... is this maybe my problem?

 

My scenario is about Pending Orders but dont know if this affects Billing.... Last my I had a client going through the WHM (first client) and of course I did not know I have to go and accept the order.

 

The billing on this client is not working properly. He got his 1st invoice but I do not see the 1 he is supposed to get now?

 

Can anyone tell me how to rectify this? Reading this Forum post I obviously accepted the order already....

 

Am I supposed to set up a "cron" to have clients Invoice created Automatically per product ? How do I do that if yes ?:(

Link to comment
Share on other sites

Thank You John,

 

I think I did that correctly - we will have to see at at midnight :-)

 

Only prob i could see was : /usr/bin/crontab permissions are wrong (6755). Please set to 4755.

 

But this I asked my Server Admin to rectify.

 

I appreciate the quick feedback.

Link to comment
Share on other sites

To test the cron, i have found it helpful to just run the cron-job manually and see what it does.

 

When i did it a few days ago, it error'd (wrong path) and i probably wouldn't have figured it out if i just put it in the automatic cron and cross my fingers for midnight. :)

 

 

Lawrence

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.

  • 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