LosBooom Posted October 10, 2019 Share Posted October 10, 2019 Hello. I think that in some updates DailyCronJob hook was broken. I have some modules and scripts which use DailyCronJob hook and some of scripts stop working. I added this code to my hooks will post results tomorrow. Maybe there are more options how to find and fix the problem? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 12, 2019 Share Posted October 12, 2019 (edited) Make sure that there's no PHP error involved in custom scripts and that the user-agent that triggers cron.php is not using a different version of PHP. Years ago I lost a lot of time trying to figure out why DailyCronJob hook wasn't working as expected. Long story short: My hooks.php file was encoded with ionCube for PHP 7.2 WHMCS was running with PHP 7.2 The user-agent triggering cron.php was running with PHP 5.6 Result? Daily Cron of WHMCS working as expected. DailyCronJob hook point was giving an error It took me days to understand what was going on because the user-agent triggering cron.php was "higher" than local-user therefore I was looking in the wrong error_log 😢 Edited October 12, 2019 by Kian 1 Quote Link to comment Share on other sites More sharing options...
LosBooom Posted October 14, 2019 Author Share Posted October 14, 2019 I found out that its floating error. 2 days ago DailyCronJob hook was triggered normally, but today it wasn't. Most likely some script that works on this hook is broken. How can I identify a weak spot in the system? 0 Quote Link to comment Share on other sites More sharing options...
LosBooom Posted October 23, 2019 Author Share Posted October 23, 2019 The problem was in 3rd party module, which was breaking automation tasks by whmcs. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 24, 2019 Share Posted October 24, 2019 @LosBooom just checking that this has fully resolved the issue for you now? 1 Quote Link to comment Share on other sites More sharing options...
LosBooom Posted October 24, 2019 Author Share Posted October 24, 2019 6 hours ago, WHMCS ChrisD said: @LosBooom just checking that this has fully resolved the issue for you now? Yes, this completely solved our problem. WHMCS Support was able to determine at what stage of the hooks there was a problem and we were able to find a module that behaved inappropriately and did break "Cron Job: Running Usage Stats Update for Server". 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.