FearlessG1 Posted November 12, 2007 Share Posted November 12, 2007 Hello all, firstly, thank you for any and all help. I have a bit of a problem with my invoicing. Invoices are not automatically being created 14 days before due date as i have setup in whmcs. I have to manually click the generate invoices button at the admin home page to generate the invoices that should have automatically generated. when i go to my cpanel i am showing the cronjob: 0 9 * * * php -q /home/sales/public_html/order/admin/cron.php i am using cent os and the current whm build. I also have the latest whmcs installed. any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
arteryplanet Posted November 12, 2007 Share Posted November 12, 2007 are you cron running? are you receiving the whmcs daily report? 0 Quote Link to comment Share on other sites More sharing options...
FearlessG1 Posted November 12, 2007 Author Share Posted November 12, 2007 I am not receiving any daily reports. I just now put in my email address in the cronjob section in cpanel. 0 Quote Link to comment Share on other sites More sharing options...
arteryplanet Posted November 12, 2007 Share Posted November 12, 2007 independently from the cron job emails that cpanel send you should receive the whmcs daily report to the default email address in whmcs (Configuration--> General configuration). Most probably your cron is not running. You have to check that. 0 Quote Link to comment Share on other sites More sharing options...
FearlessG1 Posted November 12, 2007 Author Share Posted November 12, 2007 Thanks for your help so far artery. I for sure am NOT getting any daily emails from whmcs. I am not good with cron at all. Could you offer step by step instructions for me to follow to check on it? Thanks again! 0 Quote Link to comment Share on other sites More sharing options...
arteryplanet Posted November 12, 2007 Share Posted November 12, 2007 Do you have root access or just cpanel? 0 Quote Link to comment Share on other sites More sharing options...
FearlessG1 Posted November 13, 2007 Author Share Posted November 13, 2007 i have full root access (dedicated box) 0 Quote Link to comment Share on other sites More sharing options...
arteryplanet Posted November 13, 2007 Share Posted November 13, 2007 1. make sure cron is running: ps auxw|grep cron should return someting like: root 3368 0.0 0.0 5548 656 ? S Oct20 0:34 crond If is running, put an e-mail address in the cron you have created in cpanel and see what it emailing to you, post here. Thanx! 0 Quote Link to comment Share on other sites More sharing options...
FearlessG1 Posted November 13, 2007 Author Share Posted November 13, 2007 Thank you very much. Cron was infact running, i added my email address to the cpanel cronjob and i received an email this morning that says: /bin/sh: 0: command not found 0 Quote Link to comment Share on other sites More sharing options...
arteryplanet Posted November 13, 2007 Share Posted November 13, 2007 I saw this before...i do recommend contact your DC to take a look at it, something is wrong with cron in your server, the last time i saw this problem was because the cron was allowed only for root and not for users. But the cause could be many other things also, so just open a ticket at your DC. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 13, 2007 Share Posted November 13, 2007 Did you upload the file in BINARY mode? Reupload in forced BINARY (because it's encoded) and try again, since the only time I've seen this is when a file was edited with a poor text editor that introduced odd line endings, or if it was uploaded in the wrong way. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 13, 2007 WHMCS CEO Share Posted November 13, 2007 The error "command not found" won't be related to corrupted files but can't say I've ever seen that with a "php" command. The server must have php on it to run WHMCS. Matt 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 13, 2007 Share Posted November 13, 2007 It's a "command not found" because bad line terminators cause breaks in the code. I had a backup script that was playing up (on a server that ran PHP just fine), and finally narrowed it down to the text editor I was using. Started with a fresh copy, edited exactly the same as before, but with a better program and it was fine. The only other time was when I'd inadvertently uploaded a PHP as BINARY and there were odd line endings. The SH warning is because cron is failing, not the script. Or I could be wrong. 0 Quote Link to comment Share on other sites More sharing options...
FearlessG1 Posted November 14, 2007 Author Share Posted November 14, 2007 got it working. Used the GET http address method supplied by whmcs in the automation settings. Thanks for the help everyone! 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.