slim Posted November 23, 2022 Share Posted November 23, 2022 8.6, php 8.1 I get this error when clicking on the EMAILS tab in a client profile. (doesnt happen on all clients) Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. For additional assistance, please reference the WHMCS TroubleShooting Guide » TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/xxxxx/public_html/xxxxx/clientsemails.php:0 Stack trace: #0 {main} 0 Quote Link to comment Share on other sites More sharing options...
Hal9000 Posted November 30, 2022 Share Posted November 30, 2022 Yeah I experienced lots of these errors around WHMCS with PHP 8.1 Unfortunately, PHP 7.4 got out of support, so we are kind of stuck until WHMCS fixes these issues... 0 Quote Link to comment Share on other sites More sharing options...
Edi Posted December 12, 2022 Share Posted December 12, 2022 Same error here. Emailed support, now waiting for answer. 0 Quote Link to comment Share on other sites More sharing options...
slim Posted December 13, 2022 Author Share Posted December 13, 2022 I will report this as a bug, as I still get the error on some clients. 0 Quote Link to comment Share on other sites More sharing options...
Edi Posted December 13, 2022 Share Posted December 13, 2022 15 minutes ago, slim said: I will report this as a bug, as I still get the error on some clients. Switch back to PHP 7. And waiting for new update. 0 Quote Link to comment Share on other sites More sharing options...
slim Posted December 13, 2022 Author Share Posted December 13, 2022 Its not a serious issue for me - as I dont go into the EMAILS tab often, and it doesnt error on every clients EMAILS tab.. (seems to be more common on older clients thou) The bug report is: #WBO-166432 0 Quote Link to comment Share on other sites More sharing options...
Edi Posted December 13, 2022 Share Posted December 13, 2022 http://changelog.whmcs.com/ #CORE-18323 You can check it. 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 there, This error occurs when an email campaign message failed to send to the Client Account in question (eg. invalid email address). As a workaround you can remove the failed emails from the client's EMail log: DELETE FROM `tblemails` WHERE `failed` = 1 and userid = x; Replace x with the ID of the Client Account in question. 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 A hotfix is now available for this: 0 Quote Link to comment Share on other sites More sharing options...
Edi Posted December 13, 2022 Share Posted December 13, 2022 (edited) 11 minutes ago, WHMCS John said: A hotfix is now available for this: Still have the same error code. PHP 8.1.13 Edited December 13, 2022 by Edi 0 Quote Link to comment Share on other sites More sharing options...
slim Posted December 14, 2022 Author Share Posted December 14, 2022 11 hours ago, WHMCS John said: Hi there, This error occurs when an email campaign message failed to send to the Client Account in question (eg. invalid email address). As a workaround you can remove the failed emails from the client's EMail log: DELETE FROM `tblemails` WHERE `failed` = 1 and userid = x; Replace x with the ID of the Client Account in question. Hi John I had failed campaign emails due to an earlier php 8.1 bug in the beta - Once these were removed from the database by your support team, the issue stopped. Thanks 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.