Support

Admin Tools

#39441 Unhandled exception - mysqli_sql_exception

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.3.3
PHP version
8
Admin Tools version
7.3.4

Latest post by nickg on Friday, 08 September 2023 05:29 CDT

nickg

Hello

 I received sometimes from my backend this error mail. and inside of content there is some lines about admitools. What is the problem with that ?

A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: mysqli_sql_exception
File: /home/omangdrn/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php
Line: 137
Message: MySQL server has gone away

#0 /home/xx/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php(137): mysqli->prepare()
#1 /home/xx/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php(1089): Joomla\Database\Mysqli\MysqliStatement->__construct()
#2 /home/xx/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php(1900): Joomla\Database\Mysqli\MysqliDriver->prepareStatement()
#3 /home/xx/public_html/plugins/system/admintools/src/Feature/Base.php(254): Joomla\Database\DatabaseDriver->setQuery()
#4 /home/xx/public_html/plugins/system/admintools/src/Feature/Base.php(337): Joomla\Plugin\System\AdminTools\Feature\Base->loadTimestamps()
#5 /home/xx/public_html/plugins/system/admintools/src/Feature/DisableObsoleteAdmins.php(117): Joomla\Plugin\System\AdminTools\Feature\Base->getTimestamp()
#6 /home/xx/public_html/plugins/system/admintools/src/Extension/AdminTools.php(777): Joomla\Plugin\System\AdminTools\Feature\DisableObsoleteAdmins->onAfterInitialise()
#7 /home/xx/public_html/plugins/system/admintools/src/Extension/AdminTools.php(253): Joomla\Plugin\System\AdminTools\Extension\AdminTools->runFeature()
#8 /home/xx/public_html/libraries/vendor/joomla/event/src/Dispatcher.php(486): Joomla\Plugin\System\AdminTools\Extension\AdminTools->onAfterInitialise()
#9 /home/xx/public_html/libraries/src/Application/EventAware.php(111): Joomla\Event\Dispatcher->dispatch()
#10 /home/xx/public_html/libraries/src/Application/CMSApplication.php(745): Joomla\CMS\Application\WebApplication->triggerEvent()
#11 /home/xx/public_html/libraries/src/Application/SiteApplication.php(635): Joomla\CMS\Application\CMSApplication->initialiseApp()
#12 /home/xx/public_html/libraries/src/Application/SiteApplication.php(226): Joomla\CMS\Application\SiteApplication->initialiseApp()
#13 /home/xx/public_html/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute()
#14 /home/xx/public_html/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#15 /home/xx/public_html/index.php(32): require_once('/home/omangdrn/...')
#16 {main}

. Thank you!

nicholas
Akeeba Staff
Manager

File: /home/omangdrn/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php

As per the information in this line, the error comes from Joomla's database driver, not our software. We are merely conveying the error message to you over email.

Message: MySQL server has gone away

As per the error message, your host closed the database connection on their end. They appear to have an unrealistically small idle database connection timeout limit, probably a second or less. On most sites it's enough, but if you are using any extension which needs to do non-insubstantial work (get data from a remote API, process a lot of records, …) it will not suffice for the page to render. Your host will need to increase that limit. Usually, 10–30 seconds work best. This is something that you need to talk to your host about.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nickg

thanks for your quick answer

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!