alinford Posted April 29, 2013 Share Posted April 29, 2013 When the Daily Cron runs, it is only running the invoices that are new for the day, not invoices that did not go through in the past. I checked the settings, and "Retry Once a Week" is not ticked. This was working properly in 5.1.x, but was broken in 5.2.3 and 5.2.4. 0 Quote Link to comment Share on other sites More sharing options...
smartart Posted April 29, 2013 Share Posted April 29, 2013 I am having similar problems with cron since the upgrade to 5.2.4 stable it creates the days invoices, but does nothing else. It does not run the days cc payments, or do any of the other maintenance. It sends no email on completion. When running it manually, it does exactly the same thing. I did re-save the automation settings, it made no difference. just as bad, all the cpanel module buttons now do nothing at all. i submitted a ticket yesterday, no joy on that score yet either. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted April 29, 2013 Author Share Posted April 29, 2013 Check the activity log to see if your Cron is both Starting and Completing. Mine is, but yours sounds like it may not be completing. 0 Quote Link to comment Share on other sites More sharing options...
smartart Posted April 29, 2013 Share Posted April 29, 2013 it is completing in a manner it stops without any errors. It doesn't hang. It does not show completed in the log however, just x invoices generated and nothing else after that. Same thing with a manual run, it prints out the invoices part, then drops back to the prompt. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted April 30, 2013 Author Share Posted April 30, 2013 If it does not say completed, then it is not actually completing. I am sure you have the same issue as I do, but you may also have something else going on if your are not getting "Cron Job: Completed" in the Log. 0 Quote Link to comment Share on other sites More sharing options...
smartart Posted April 30, 2013 Share Posted April 30, 2013 I did mange to fix it - I re-downloaded and re-unpacked the file, then uploaded it all again. I can only assume there was a corruption of some sort the first time I downloaded it. cron completes and cpanel buttons work again. so PHEW. I'm not sure if I have your issue as well, will keep an eye out for it. 0 Quote Link to comment Share on other sites More sharing options...
denial Posted April 30, 2013 Share Posted April 30, 2013 Same thing here. i oppened a ticket and they suggest to increase php.ini parameters, but nothing so far.. 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted May 1, 2013 Share Posted May 1, 2013 Hi, We have the same problem - it only tries to charge the invoices the day the cron runs - it does not try to charge any invoices that are overdue! 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted May 1, 2013 Share Posted May 1, 2013 HI i opened a ticket about this over a month ago (mid march) no fix has been provided, i logged it when 5.2.1 was released, same issue in newer versions up to 5.2.4 0 Quote Link to comment Share on other sites More sharing options...
DF-Duncan Posted May 2, 2013 Share Posted May 2, 2013 We did receive a fix from Matt for 5.2.3 for this a new ccfunctions.php which did fix the problem of not re charging invoices that were overdue on the daily cron and/or Attempt CC Capture However this created another problem, which stopped the daily cron email being sent, and suspension's as the script seems to error at the end. We have updated Matt in regards to it. 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted May 2, 2013 Share Posted May 2, 2013 We did receive a fix from Matt for 5.2.3 for this a new ccfunctions.php which did fix the problem of not re charging invoices that were overdue on the daily cron and/or Attempt CC Capture However this created another problem, which stopped the daily cron email being sent, and suspension's as the script seems to error at the end. We have updated Matt in regards to it. Thanks - would it be possible for you to PM me the ccfunctions.php file or attach here? 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted May 2, 2013 Share Posted May 2, 2013 See this thread!! http://forum.whmcs.com/showthread.php?70419-UNCONFIRMED-Credit-Card-Payments-not-automatically-processing-on-NEW-RENEWAL-Orders WHMCS - FIX the PROBLEM!!!!!! 0 Quote Link to comment Share on other sites More sharing options...
satsuke Posted May 3, 2013 Share Posted May 3, 2013 So, How to fix this cron problem? 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 3, 2013 Share Posted May 3, 2013 (edited) This is a new problem to me also, I cant see a fix for it, no logs to show no errors displaying, the cron job just gets so far through and then dies. Mine dies at Cron Job: Starting Processing Invoice Reminder Notices I just noticed as typing this that i use a custom hook at the email point in my old version: 5.1.3 and i suspect that is the breaker. I am going to investigate now and see what comes of it i will get back to you as soon as i know more. EDIT:: this was not the problem in my case, solution still unknown, I think this is a general cron error and not just a problem with creditcards but i cant be sure. Latest EDIT:: I have just removed all of the hooks from /includes/hooks/ other than the one for live chat and the cron job ran right up until it hit the database backup, which means the job actually completed this time. but the backup job started and hung, although i dont back up with whmcs. CHECK YOUR CUSTOM HOOKS/MODULES ARE UPTO DATE Edited May 3, 2013 by CDJ Hosting 0 Quote Link to comment Share on other sites More sharing options...
satsuke Posted May 4, 2013 Share Posted May 4, 2013 This is a new problem to me also, I cant see a fix for it, no logs to show no errors displaying, the cron job just gets so far through and then dies. Mine dies at Cron Job: Starting Processing Invoice Reminder Notices I just noticed as typing this that i use a custom hook at the email point in my old version: 5.1.3 and i suspect that is the breaker. I am going to investigate now and see what comes of it i will get back to you as soon as i know more. EDIT:: this was not the problem in my case, solution still unknown, I think this is a general cron error and not just a problem with creditcards but i cant be sure. Latest EDIT:: I have just removed all of the hooks from /includes/hooks/ other than the one for live chat and the cron job ran right up until it hit the database backup, which means the job actually completed this time. but the backup job started and hung, although i dont back up with whmcs. CHECK YOUR CUSTOM HOOKS/MODULES ARE UPTO DATE Thanks for your information. I removed namecheapssl hook and its working now..!! 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 4, 2013 Share Posted May 4, 2013 Thanks for your information. I removed namecheapssl hook and its working now..!! I am glad that i could be of assistance. i guess this is the cause for many people updating from the old system because there was a change in the way that WHMCS handles the smarty object. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted May 4, 2013 Author Share Posted May 4, 2013 This is a new problem to me also, I cant see a fix for it, no logs to show no errors displaying, the cron job just gets so far through and then dies. THE OP is about a bug in the CRON that is only running that days invoices, not past due invoices. This is a different issue than if your CRON is not completing for some reason. Please keep this thread focused on the reported bug. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 4, 2013 Share Posted May 4, 2013 (edited) THE OP is about a bug in the CRON that is only running that days invoices, not past due invoices. This is a different issue than if your CRON is not completing for some reason. Please keep this thread focused on the reported bug. That might be the case, or it could well be linked. its a part of the daily cron job to run the invoices so it could very well be the answer you're all looking for. just because my hook point was failing at emails doesn't mean yours wouldn' fail at the credit card processing if your using a module from the old system. think about it. There are many "hook points" during the cron run, you could have just one in use as is my case or you could have several, any one or all of those old modules could cause it to fail and for some reason there is no log, no error and no completion. although, i suspect if you have access to the crontab logs you would see some error or another in those logs. Edited May 4, 2013 by CDJ Hosting 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted May 4, 2013 Author Share Posted May 4, 2013 That might be the case, or it could well be linked. its a part of the daily cron job to run the invoices so it could very well be the answer you're all looking for. just because my hook point was failing at emails doesn't mean yours wouldn' fail at the credit card processing if your using a module from the old system. think about it. There are many "hook points" during the cron run, you could have just one in use as is my case or you could have several, any one or all of those old modules could cause it to fail and for some reason there is no log, no error and no completion. although, i suspect if you have access to the crontab logs you would see some error or another in those logs. The posted bug is when the CRON is run, it is only running new invoices. This is happening on complete CRON runs. Incomplete CRON runs are a separate issue. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 4, 2013 Share Posted May 4, 2013 The posted bug is when the CRON is run, it is only running new invoices. This is happening on complete CRON runs. Incomplete CRON runs are a separate issue. Regardless, it helped somebody shortly after i posted my reply. thanks 0 Quote Link to comment Share on other sites More sharing options...
Troy Posted May 6, 2013 Share Posted May 6, 2013 I'm experiencing this problem too. Removed all hooks just to test--same results. Running "Attempt CC Captures" from the admin home page only attempts to charge 5 invoices that are due to be paid today--none of the past due invoices. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 6, 2013 Share Posted May 6, 2013 Are your settings in the automation correct? there is an option to only process cards once. If this is enabled then previously failed cards wont be attempted again. might be worth taking a look anyway just to be certain. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted May 6, 2013 Author Share Posted May 6, 2013 No, the "Tick this box to only attempt the payment automatically once and if it fails, don't attempt it again" box is not checked. 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted May 7, 2013 Share Posted May 7, 2013 HI Support sent me a patch for this today and from what I can see it works now 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted May 7, 2013 Author Share Posted May 7, 2013 Can you post it please? 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.