Fatal error: Uncaught exception ‘Illuminate\Database\QueryException’ with message ‘SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (SQL: select * from `tblinvoices` where `id` = 33 limit 1)

Fatal error: Uncaught exception ‘Illuminate\Database\QueryException’ with message ‘SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (SQL: select * from `tblinvoices` where `id` = 33 limit 1) (SQL: select * from `tblinvoices` where `id` = 33 limit 1)’ in /home/bunnytech/public_html/control/includes/classes/WHMCS/Terminus.php:0 Stack trace: #0 [internal function]: WHMCS\Terminus->whmcsExceptionHandler(Object(Illuminate\Database\QueryException)) #1 {main} thrown in /home/bunnytech/public_html/control/includes/classes/WHMCS/Terminus.php on line 0

Fix

The issue is coming from the WHMCS mail system. The system is not able to send a invoice to client so whmcs giving the error. Under the WHMCS admin panel general setting mail tab the smtp SSL type was selected to TLS. When I set the smtp ssl type TLS to SSL the system is fine adding funds and sending mails to clients.

Leave a comment