mikelegg Posted May 30, 2011 Share Posted May 30, 2011 I've started receiving errors on the daily WHMCS cron job since upgrading to 4.5.1. Some days I get ... Fatal error: Cannot redeclare cpanel_configoptions() in /[path-to-folder]/public_html/modules/servers/cpanel/cpanel.php on line 0 Other days I get ... Fatal error: Cannot redeclare plesk_configoptions() in [path-to-folder]]/public_html/modules/servers/plesk/plesk.php on line 0 Is anybody else experiencing this? 0 Quote Link to comment Share on other sites More sharing options...
drhcanada Posted June 1, 2011 Share Posted June 1, 2011 Not getting Cron errors, but since the upgrade the cron has not been running properly. The cron runs at 3am and will process pending payments and create pending invoices, but does not send me the email or send the back up as usual. 0 Quote Link to comment Share on other sites More sharing options...
NickV Posted June 2, 2011 Share Posted June 2, 2011 I upgraded yesterday and up until then, no problems with the cron job. Today at 03:00 the database backup ran fine, and so did exchange rate syncs and an additional cron job function to round exchange rates. However I also had this error: "CURL Error: 7 - couldn't connect to host" against all the domains in my WHMCS ResellerClub Domain Syncronisation Report. Also, I got a Cron Daemon email with this content (sorry, its a bit long): mod_cahconfig<br />mod_ipmanager<br />mod_ipmonitor<br />mod_jwhmcs_config<br />tblaccounts<br />tblactivitylog<br />tbladdonmodules<br />tbladdons<br />tbladminlog<br />tbladminperms<br />tbladminroles<br />tbladmins<br />tbladminsecurityquestions<br />tblaffiliates<br />tblaffiliatesaccounts<br />tblaffiliateshistory<br />tblaffiliatespending<br />tblaffiliateswithdrawals<br />tblannouncements<br />tblbannedemails<br />tblbannedips<br />tblbillableitems<br />tblbrowserlinks<br />tblcalendar<br />tblcancelrequests<br />tblclientgroups<br />tblclients<br />tblclientsfiles<br />tblconfiguration<br />tblcontacts<br />tblcredit<br />tblcurrencies<br />tblcustomfields<br />tblcustomfieldsvalues<br />tbldomainpricing<br />tbldomains<br />tbldomainsadditionalfields<br />tbldownloadcats<br />tbldownloads<br />tblemails<br />tblemailtemplates<br />tblfraud<br />tblgatewaylog<br />tblhosting<br />tblhostingaddons<br />tblhostingconfigoptions<br />tblinvoiceitems<br />tblinvoices<br />tblknowledgebase<br />tblknowledgebasecats<br />tblknowledgebaselinks<br />tbllinks<br />tblnetworkissues<br />tblnotes<br />tblorders<br />tblpaymentgateways<br />tblpricing<br />tblproductconfiggroups<br />tblproductconfiglinks<br />tblproductconfigoptions<br />tblproductconfigoptionssub<br />tblproductgroups<br />tblproducts<br />tblpromotions<br />tblquoteitems<br />tblquotes<br />tblregistrars<br />tblservergroups<br />tblservergroupsrel<br />tblservers<br />tblsslorders<br />tbltax<br />tblticketbreaklines<br />tblticketdepartments<br />tblticketescalations<br />tblticketlog<br />tblticketmaillog<br />tblticketnotes<br />tblticketpredefinedcats<br />tblticketpredefinedreplies<br />tblticketreplies<br />tbltickets<br />tblticketspamfilters<br />tblticketstatuses<br />tbltodolist<br />tblupgrades<br />tblwhoislog<br /> 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted June 2, 2011 Share Posted June 2, 2011 Not getting Cron errors, but since the upgrade the cron has not been running properly. The cron runs at 3am and will process pending payments and create pending invoices, but does not send me the email or send the back up as usual. We've been having the same issue. To fix it I first tried running the Cron job from the command line to see if I can find any errors, but it actually completed successfully. So after that I set it to run at a different time and it worked for a day, and then this morning it's back to stopping part of the way through. If you look in the activity log and do a search for "Cron" you can see where it stopped, although it doesn't really give any useful info as it seems to stop at a different task each day. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 2, 2011 Share Posted June 2, 2011 Looks like it could be to do with the DB backup. To rule it out disable the backup in admin->setup->Database Backups You just need to remove the Email Address and FTP Hostname 0 Quote Link to comment Share on other sites More sharing options...
Troy Posted June 2, 2011 Share Posted June 2, 2011 I've been having this same issue. I'm not using database backup. Matt suggested it's because I didn't get all the files updated to 4.5.1, but I've double checked and re-uploaded everything,making sure everything was uploaded binary, and I'm still having the problem. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 2, 2011 WHMCS Support Manager Share Posted June 2, 2011 Set your cron email output to null, or add the following to the cron command: >/dev/null 0 Quote Link to comment Share on other sites More sharing options...
Serverius Posted June 2, 2011 Share Posted June 2, 2011 Same problem here, since upgrading to 4.5.1 (on IIS) the cron backups did not run normal anymore. When running the cron on a command line or just via http, the script is settings the CPU usage to 100% for many hours till we kill the php process manually… So we disable the backup (we have normal MySQL backups, so that’s not a problem), run cron via the command line, and everything look fine, the cron gives no errors and we get a normal “WHMCS Cron Job Activity” e-mail like we always get. We thought that it was working ok, but it is not. The “WHMCS Cron Job Activity” email say all the time “0 Invoices Created”. That not true, because on the first of every month WHMCS should generate allot of invoices and now it skips all the “recurring billable items” (our customers are paying per month). To test I added a new recurring payment, but this is also not working. Only when I add a “Invoice on Next Cron Run” invoice action, it works perfectly. So we are shure that the cron itself is running fine but skips the daily, weekly and monthly recurring items. What can we do to fix this? Please help. 0 Quote Link to comment Share on other sites More sharing options...
drhcanada Posted June 2, 2011 Share Posted June 2, 2011 my invoicing is working, but the backups and email are not. I have to kill the process or reboot the server to get it doing its thing the following night. oh and I am using apache/whm/cpanel 0 Quote Link to comment Share on other sites More sharing options...
Troy Posted June 4, 2011 Share Posted June 4, 2011 Set your cron email output to null, or add the following to the cron command: >/dev/null No a good idea because this bug is preventing the cron from completing. The gathering of disk storage and bandwidth statistics in not happening, for example. This is very bad for those of us who are charging for overage. Suppressing the cron output is not the solution. 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted June 4, 2011 Share Posted June 4, 2011 We've had two successful runs now by splitting the cron into two parts and running the second part 30 minutes later. Here's how it looks: 0 5 * * * /home/user/whmcs_cron.sh 30 5 * * * /home/user/whmcs_usage.sh whmcs_cron.sh contains /usr/local/bin/php -q -d memory_limit=128M /home/user/public_html/admin/cron.php skip_usagestats whmcs_usage.sh contains /usr/local/bin/php -q -d memory_limit=128M /home/user/public_html/damin/cron.php skip_invoices skip_latefees skip_ccprocessing skip_invoicereminders skip_domainrenewalnotices skip_suspensions skip_terminations skip_cancelrequests skip_closetickets skip_affreports skip_ccexpirynotices skip_backups it was failing on the usage stats for us too but this works so far. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted June 6, 2011 WHMCS CEO Share Posted June 6, 2011 No a good idea because this bug is preventing the cron from completing. The gathering of disk storage and bandwidth statistics in not happening, for example. This is very bad for those of us who are charging for overage. Suppressing the cron output is not the solution. You are not experiencing the same issue as the user is reporting above if your cron is actually ending early. The backup stage is the last thing in the cron, so that if problems occur it doesn't affect anything, so if you're getting the output confirming what tables have been backed up then all activity the cron has to do has been completed successfully. Therefore surpressing the email confirmation is something you can do without any problems. If however you're experiencing a more serious issue then you should open a ticket. Time execution & memory limits are the most common causes of cron early termination though. Matt 0 Quote Link to comment Share on other sites More sharing options...
tommyinnn Posted June 6, 2011 Share Posted June 6, 2011 Accounts for me are no longer suspending when late, backups not working either 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted June 6, 2011 Share Posted June 6, 2011 [quote=Matt;189426Time execution & memory limits are the most common causes of cron early termination though. Matt Would you be able to offer some suggestions on how best to tackle this then? It would appear from the number of recent posts a few people are experiencing issues running the cron to completion since the upgrade. 0 Quote Link to comment Share on other sites More sharing options...
tommyinnn Posted June 6, 2011 Share Posted June 6, 2011 Damo -- does your WHMCS seem to be running slower then usually, as if the Cron is stuck, as indicated by other users? Yes, this needs to be corrected because we can not go back and restore the old version since there is now new data, can not go back to the old database now. 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted June 6, 2011 Share Posted June 6, 2011 I've not noticed anything slower. The cron runs at 5am and even when I run it manually the load isn't impacted. 0 Quote Link to comment Share on other sites More sharing options...
tommyinnn Posted June 6, 2011 Share Posted June 6, 2011 K, may have just been a server issue, seems to have cleared up now....thanks 0 Quote Link to comment Share on other sites More sharing options...
isdoo Posted June 7, 2011 Share Posted June 7, 2011 Am also seeing Cannot redeclare cpanel_configoptions 0 Quote Link to comment Share on other sites More sharing options...
Troy Posted June 8, 2011 Share Posted June 8, 2011 Matt provided new admin/cron.php and includes/modulefunctions.php which corrected the problem for us. You might want to request those files if you're having this problem. 0 Quote Link to comment Share on other sites More sharing options...
drhcanada Posted June 10, 2011 Share Posted June 10, 2011 Matt provided new admin/cron.php and includes/modulefunctions.php which corrected the problem for us. You might want to request those files if you're having this problem. Hopefully it will be in an update to the software soon 0 Quote Link to comment Share on other sites More sharing options...
tommyinnn Posted June 10, 2011 Share Posted June 10, 2011 Yes whmcs got mine working as well the same day I opened a ticket, cron is running as it did before. 0 Quote Link to comment Share on other sites More sharing options...
zoilodiaz Posted June 13, 2011 Share Posted June 13, 2011 i got the same issue i open a ticket to whmcs support for see if they can help 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.