wpmattuk Posted December 11, 2022 Share Posted December 11, 2022 As the title says, Cron has encountered a DivisionByZeroError error for 2 days on the run now. Invoices aren't being generated, along with any other processes relying on Cron. The full email content is (have changed certain path elements) in the attached; as I couldn't include this text in the post. Thanks anyone that can help! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 11, 2022 Share Posted December 11, 2022 Simply put during cron WHMCS causes the fatal error as it is trying to divide a null variable by a number. Probably there is a null amount somewhere in tblinvoiceitems or tblinvoices. No one apart from WHMCS staff can help you fixing this error as they obfuscate PHP files so that you never know what is the exact line that caused the error. 0 Quote Link to comment Share on other sites More sharing options...
wpmattuk Posted December 11, 2022 Author Share Posted December 11, 2022 Thanks. Raised a ticket. However, after that I tried to upgrade to 8.6.1 and it failed; wiping out the entire instance! So a manual re-install from scratch and the whole problem is fixed. Go figure! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 13, 2022 WHMCS Support Manager Share Posted December 13, 2022 Hi @thisismatt, Can you please confirm whether you're running v8.6.1? We addressed an identical error in the latest release for PHP 8.1 environments: Quote CORE-18266 - Prevent error in PHP 8.1 for invoices generated with 100% discount https://docs.whmcs.com/Changelog:WHMCS_V8.6.1 0 Quote Link to comment Share on other sites More sharing options...
wpmattuk Posted December 14, 2022 Author Share Posted December 14, 2022 16 hours ago, WHMCS John said: Hi @thisismatt, Can you please confirm whether you're running v8.6.1? I can indeed confirm that I am now running 8.6.1 and the error no longer appears. The auto-update failed and bricked my installation, so a full manual re-install was required though. But all good in the end. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 14, 2022 WHMCS Support Manager Share Posted December 14, 2022 Hi @thisismatt. Glad to hear the issue is now resolved. With regards to the auto-updating issue; what error did you experience, please? Some of the most common errors are detailed at: https://docs.whmcs.com/Automatic_Updater#Troubleshooting https://help.whmcs.com/m/updating/l/1136003-resolving-a-down-for-maintenance-message 0 Quote Link to comment Share on other sites More sharing options...
wpmattuk Posted December 14, 2022 Author Share Posted December 14, 2022 21 minutes ago, WHMCS John said: With regards to the auto-updating issue; what error did you experience, please? Unfortunately I didn't make a note; I was in too much of a rush to get it back up again! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 15, 2022 WHMCS Support Manager Share Posted December 15, 2022 Hi @thisismatt, The entries in the tblupdatelog table from the time of performing the-update may provide some indication of the root cause of the problem. Please do share them here for us to review. 0 Quote Link to comment Share on other sites More sharing options...
wpmattuk Posted December 15, 2022 Author Share Posted December 15, 2022 1 hour ago, WHMCS John said: Hi @thisismatt, The entries in the tblupdatelog table from the time of performing the-update may provide some indication of the root cause of the problem. Please do share them here for us to review. I've got the dump of the table, but as it contains paths/filenames unique to me I'd rather not add it here, how can I share with you guys privately? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 16, 2022 WHMCS Support Manager Share Posted December 16, 2022 Hi @thisismatt, Please open a support ticket so we can review the data: https://www.whmcs.com/submit-a-ticket/ 0 Quote Link to comment Share on other sites More sharing options...
wpmattuk Posted December 16, 2022 Author Share Posted December 16, 2022 Done @WHMCS John 👍 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.