Bossmanuk Posted December 1, 2016 Share Posted December 1, 2016 Hi Everyone, It appears every time I upgrade it messes with my monthly invoices going out. I don't know until it's to late or a customer contacts me which is starting to look very unprofessional. Is anyone else getting the same issue? I have the latest version installed, the cron status says it's working correctly and I get update notifications but stopped generating monthly invoices? Thanks Bossmanuk 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 1, 2016 Share Posted December 1, 2016 If you look below your post I have the same issue 0 Quote Link to comment Share on other sites More sharing options...
Bossmanuk Posted December 2, 2016 Author Share Posted December 2, 2016 Hi Arjanvr, Have you managed to resolve it? I was asked by support to check the cron path but is all fine and nothing has changed apart from the core program update? Have you run php -q /path/to/your/crons/cron.php all --force debug within ssh? You'll want to be sure to replace the /path/to/your/crons/cron.php bit with the actual path to your cron.php file. Thanks Bossmanuk 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 4, 2016 Share Posted December 4, 2016 Well in automation settings in WHMCS it says it's setup correctly */5 * * * * php -q /home/********/public_html/clients/whmcs/crons/cron.php Cron Status Ok Last Run: 04/12/2016 07:17 So it seems to be running so why is it not sending out incouices? No i did not run the --force command. Was it already solved for you? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted December 5, 2016 Share Posted December 5, 2016 Hi Guys, Each time the cron runs you should get an email to show what has been executed this will go to which ever email you have specified under your cPanel Cron Configuration, check that email account around the time you have the daily cron scheduled to run under Setup -> Automation Settings and see what shows in there. 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 8, 2016 Share Posted December 8, 2016 Hello, I see no cron emails at all. What could be the issue of this? 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 8, 2016 Share Posted December 8, 2016 When i look in /var/log/cron i don't see an error btw Dec 7 08:17:01 vps1 CROND[22058]: (********) CMD (php -q /home/*********/public_html/clients/whmcs/admin/cron.php) 0 Quote Link to comment Share on other sites More sharing options...
slumdog Posted December 8, 2016 Share Posted December 8, 2016 Hi there, I have the same issue. In cpanel /home/username/crons I see a file error_log in which I see: [07-Dec-2016 22:00:01 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/username/public_html/whmcs/init.php on line 0 I have asked the hosting provider and they says that ini_set is activated. How can this be solved? thank you 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 8, 2016 Share Posted December 8, 2016 Each time the cron runs you should get an email to show what has been executed this will go to which ever email you have specified under your cPanel Cron Configuration, check that email account around the time you have the daily cron scheduled to run under Setup -> Automation Settings and see what shows in there. I seem to recall that with the shift to running the cron every 5 minutes in WHMCS, we were told to suppress that email by sending it to dev/null? The emails would only come from WHMCS itself, which will not send if it fails to run. 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 10, 2016 Share Posted December 10, 2016 So what can be the reason it's not working properly even though my cron seems to be setup fine. 0 Quote Link to comment Share on other sites More sharing options...
ProSam Posted December 14, 2016 Share Posted December 14, 2016 I am having this same issue. I did go ahead and add my email to the cron setup to get notifications of any errors. We will see tomorrow. In the mean time I have had to manually create the invoices using prior invoices as templates. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted December 14, 2016 Share Posted December 14, 2016 Hi Arjanvr, If you check your Cron Job configuration in cPanel you should see an email address in the configuration if you pop into this email account you should see an output, check this and see what it says ensure that you do not have "dev/null" at the end of your cron path 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted December 14, 2016 Share Posted December 14, 2016 I seem to recall that with the shift to running the cron every 5 minutes in WHMCS, we were told to suppress that email by sending it to dev/null? The emails would only come from WHMCS itself, which will not send if it fails to run. V7.1 reduces these notifications so you be able to remove /dev/null and not get hammered with the emails 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 15, 2016 Share Posted December 15, 2016 I am now noticing this email i got.. what can cause this? And can this also be the issue for the primairy issue? The email address for the cronjob is setup correctly though The cron has run within the last 24 hours. To force the cron to run all operations immediately, please invoke with the following arguments "all --force". Perform WHMCS Update Check Check for Updates Failed: Unable to connect to the WHMCS Update Server. Please try again later or contact support. 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted December 16, 2016 Share Posted December 16, 2016 Check for Updates Failed: Unable to connect to the WHMCS Update Server. Please try again later or contact support. That error indicates your server was not able to reach the WHMCS update server. Check in WHMCS yourwhmcsinstall.com/admin/systemhealthandupdates.php for some help on this perhaps. 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 16, 2016 Share Posted December 16, 2016 (edited) Well one of the messages is this but in WHMCS it says it has run.. "System Cron Tasks The system cron does not appear to have completed successfully within the last 24 hours. Check your activity logs or learn more about enabling the cron in our documentation." What cron should i check for or create that runs the invoices being generated? Edited December 16, 2016 by arjanvr 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted December 16, 2016 Share Posted December 16, 2016 You need to setup the system cron. It's explained in the documentation as well as on the Setup > Automation Settings page Docs: http://docs.whmcs.com/Crons All the best 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 16, 2016 Share Posted December 16, 2016 I assume that it's this one? This is already setup correctly so i dont understand why i get the message php -q /home/**username**/public_html/clients/whmcs/crons/cron.php 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 16, 2016 Share Posted December 16, 2016 Whenever i try to upgrade from utilities -> update whmcs - check for updates it also says it cannot connect to the update server. What can be causing this as i might also be the origin of the main issue? 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted December 17, 2016 Share Posted December 17, 2016 Whenever i try to upgrade from utilities -> update whmcs - check for updates it also says it cannot connect to the update server. What can be causing this as i might also be the origin of the main issue? Your server is not able to communicate with the update server in this case. Maybe check with your host? Also check the page /admin/systemhealthandupdates.php on your install for any obvious issues with your hosting setup 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 17, 2016 Share Posted December 17, 2016 Its on my private dedicated server but i will see if i can find something. i never had issues with older whmcs versions though. Should i whitelist aan certain ip? 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted December 17, 2016 Share Posted December 17, 2016 Try reaching their server via the command line to test the connection between your server and WHMCS update server. 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 18, 2016 Share Posted December 18, 2016 how would i reach their server via the command line? 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted December 18, 2016 Share Posted December 18, 2016 Start with a ping to the WHMCS update server. Also check the page /admin/systemhealthandupdates.php on your install for any obvious issues with your hosting setup. Perhaps a required module like curl is missing for example, or is not a supported version. 0 Quote Link to comment Share on other sites More sharing options...
arjanvr Posted December 19, 2016 Share Posted December 19, 2016 This is in warnings and seems to be the only thing anyway related. "Automatic Update Requirements Automatic Updates require the allow_url_fopen setting to be enabled in your PHP configuration. Automatic Updates require a writeable directory for staging files during an update. You must provide a directory via the Updater Configuration before you can update." But manual checking also fails. Where is the update server located so i know where to ping to? 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.