mysqli_sql_exception {#11879 #sqlstate: "HY000" }
$this->connection = $connection; $this->query = $query; $query = $this->prepareParameterKeyMapping($query); $this->statement = $connection->prepare($query); if (!$this->statement) { throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno); } } $this->connection = $connection; $this->query = $query; $query = $this->prepareParameterKeyMapping($query); $this->statement = $connection->prepare($query); if (!$this->statement) { throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno); } } * @since 2.0.0 * @throws PrepareStatementFailureException */ protected function prepareStatement(string $query): StatementInterface { return new MysqliStatement($this->connection, $query); } /** * Unlocks tables in the database. * $query->setLimit($limit, $offset); $sql = $this->replacePrefix((string) $query); $this->statement = $this->prepareStatement($sql); $this->sql = $query; $this->limit = (int) max(0, $limit); $this->offset = (int) max(0, $offset); $query->where($db->quoteName('folder') . ' = :folder') ->bind(':folder', $folder); } $query->setLimit(1); $db->setQuery($query); self::$loadedExtensions[$key] = $db->loadObject(); } return self::$loadedExtensions[$key]; return $this->info; } private function getCompatPluginParameters() { $record = ExtensionHelper::getExtensionRecord('compat', 'plugin', 0, 'behaviour'); if ($record) { $params = new Registry($record->params); return ArrayHelper::toString($params->toArray(), ':', ', '); $db = $this->getDatabase(); $this->info = [ 'version' => (new Version())->getLongVersion(), 'compatpluginenabled' => PluginHelper::isEnabled('behaviour', 'compat'), 'compatpluginparameters' => $this->getCompatPluginParameters(), 'phpversion' => PHP_VERSION, 'php' => php_uname(), 'dbserver' => $db->getServerType(), 'dbversion' => $db->getVersion(), 'dbcollation' => $db->getCollation(), 'joomlaVersion' => JVERSION, 'requestId' => $this->requestId, 'identity' => $this->getIdentityInfo($application->getIdentity()), 'response' => $this->getResponseInfo($application->getResponse()), 'template' => $this->getTemplateInfo($application->getTemplate(true)), 'database' => $this->getDatabaseInfo($model->getInfo()), ]; } /** * Get Identity info. $request_variables ) ); foreach ($this->collectors as $name => $collector) { $this->data[$name] = $collector->collect(); } // Remove all invalid (non UTF-8) characters array_walk_recursive($this->data, function (&$item) { if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) { * @return array */ public function getData() { if ($this->data === null) { $this->collect(); } return $this->data; } /** $js .= $this->getAddDatasetCode($id, $data, '(stacked)'); } } $suffix = !$initialize ? '(ajax)' : null; $js .= $this->getAddDatasetCode($this->debugBar->getCurrentRequestId(), $this->debugBar->getData(), $suffix); $nonce = ''; if ($doc->cspNonce) { $nonce = ' nonce="' . $doc->cspNonce . '"'; echo $contents; return; } echo str_replace('</body>', $debugBarRenderer->renderHead() . $debugBarRenderer->render() . '</body>', $contents); } /** * AJAX handler * foreach ($this->listeners[$event->getName()] as $listener) { if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $dispatcher = $this->getDispatcher(); } catch (\UnexpectedValueException $exception) { return null; } return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this)); } /** * Method to run the application routines. * // Send the application response. $this->respond(); // Trigger the onAfterRespond event. $this->dispatchEvent( 'onAfterRespond', new AfterRespondEvent('onAfterRespond', ['subject' => $this]) ); }// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php';|
mysqli_sql_exception
|
|---|
mysqli_sql_exception:
MySQL server has gone away
at /hp/ci/aa/ky/www/svd-test/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138
at mysqli->prepare('SELECT *FROM `eyha_extensions`WHERE `element` = ? AND `type` = ? AND `client_id` = ? AND `folder` = ? LIMIT 1')
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138)
at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT *FROM `eyha_extensions`WHERE `element` = ? AND `type` = ? AND `client_id` = ? AND `folder` = ? LIMIT 1')
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:972)
at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT *FROM `eyha_extensions`WHERE `element` = :element AND `type` = :type AND `client_id` = :clientId AND `folder` = :folder LIMIT 1')
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/joomla/database/src/DatabaseDriver.php:1780)
at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
(/hp/ci/aa/ky/www/svd-test/libraries/src/Extension/ExtensionHelper.php:506)
at Joomla\CMS\Extension\ExtensionHelper::getExtensionRecord('compat', 'plugin', 0, 'behaviour')
(/hp/ci/aa/ky/www/svd-test/administrator/components/com_admin/src/Model/SysinfoModel.php:337)
at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getCompatPluginParameters()
(/hp/ci/aa/ky/www/svd-test/administrator/components/com_admin/src/Model/SysinfoModel.php:318)
at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getInfo()
(/hp/ci/aa/ky/www/svd-test/plugins/system/debug/src/DataCollector/InfoCollector.php:136)
at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect()
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/php-debugbar/php-debugbar/src/DebugBar/DebugBar.php:238)
at DebugBar\DebugBar->collect()
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/php-debugbar/php-debugbar/src/DebugBar/DebugBar.php:265)
at DebugBar\DebugBar->getData()
(/hp/ci/aa/ky/www/svd-test/plugins/system/debug/src/JavascriptRenderer.php:119)
at Joomla\Plugin\System\Debug\JavascriptRenderer->render()
(/hp/ci/aa/ky/www/svd-test/plugins/system/debug/src/Extension/Debug.php:377)
at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond(object(AfterRespondEvent))
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch('onAfterRespond', object(AfterRespondEvent))
(/hp/ci/aa/ky/www/svd-test/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
at Joomla\Application\AbstractApplication->dispatchEvent('onAfterRespond', object(AfterRespondEvent))
(/hp/ci/aa/ky/www/svd-test/libraries/src/Application/CMSApplication.php:347)
at Joomla\CMS\Application\CMSApplication->execute()
(/hp/ci/aa/ky/www/svd-test/includes/app.php:58)
at require_once('/hp/ci/aa/ky/www/svd-test/includes/app.php')
(/hp/ci/aa/ky/www/svd-test/index.php:51)
|