LukeDouglas Posted July 2, 2009 Share Posted July 2, 2009 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. 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 Take a look at Utilities > Activity Log. What's the most recent Cron Job line? You'll probably need to increase the php memory limit. 0 Quote Link to comment Share on other sites More sharing options...
uriel Posted July 24, 2009 Share Posted July 24, 2009 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 ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 24, 2009 WHMCS Support Manager Share Posted July 24, 2009 Yes you are supposed to setup a cron, take a look at our tutorial video @ http://whmcs.com/tutorials.php?i=1 0 Quote Link to comment Share on other sites More sharing options...
uriel Posted July 24, 2009 Share Posted July 24, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
uriel Posted July 24, 2009 Share Posted July 24, 2009 I did that on the main account - in other words all the sub accounts is under this one's cPanel. this will presumably run Billing and Invoicing on ALL subs? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 24, 2009 WHMCS Support Manager Share Posted July 24, 2009 You just need to setup the cron in the same account as your WHMCS installation. 0 Quote Link to comment Share on other sites More sharing options...
maknet Posted July 24, 2009 Share Posted July 24, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
uriel Posted July 25, 2009 Share Posted July 25, 2009 mine worked! thanx Guys I appreciate the replies.... 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.