$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); */ public function isConnectionEncryptionSupported(): bool { $this->connect(); $variables = $this->setQuery('SHOW SESSION VARIABLES WHERE `Variable_name` IN (\'have_ssl\')')->loadObjectList('Variable_name'); return !empty($variables['have_ssl']->Value) && $variables['have_ssl']->Value === 'YES'; } /** 'dbserver' => $db->getServerType(), 'dbversion' => $db->getVersion(), 'dbcollation' => $db->getCollation(), 'dbconnectioncollation' => $db->getConnectionCollation(), 'dbconnectionencryption' => $db->getConnectionEncryption(), 'dbconnencryptsupported' => $db->isConnectionEncryptionSupported(), 'phpversion' => PHP_VERSION, 'server' => $_SERVER['SERVER_SOFTWARE'] ?? getenv('SERVER_SOFTWARE'), 'sapi_name' => PHP_SAPI, 'version' => (new Version())->getLongVersion(), 'useragent' => $_SERVER['HTTP_USER_AGENT'] ?? '', '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 * if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } // Send the application response. $this->respond(); // Trigger the onAfterRespond event. $this->getDispatcher()->dispatch('onAfterRespond'); } /** * Check if the user is required to reset their password. *// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once dirname(__FILE__) . '/includes/app.php';|
mysqli_sql_exception
|
|---|
mysqli_sql_exception:
MySQL server has gone away
at /home/gazetacom/public_html/site2026/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137
at mysqli->prepare('SHOW SESSION VARIABLES WHERE `Variable_name` IN (\'have_ssl\')')
(/home/gazetacom/public_html/site2026/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137)
at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SHOW SESSION VARIABLES WHERE `Variable_name` IN (\'have_ssl\')')
(/home/gazetacom/public_html/site2026/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089)
at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SHOW SESSION VARIABLES WHERE `Variable_name` IN (\'have_ssl\')')
(/home/gazetacom/public_html/site2026/libraries/vendor/joomla/database/src/DatabaseDriver.php:1912)
at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
(/home/gazetacom/public_html/site2026/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:548)
at Joomla\Database\Mysqli\MysqliDriver->isConnectionEncryptionSupported()
(/home/gazetacom/public_html/site2026/administrator/components/com_admin/src/Model/SysinfoModel.php:319)
at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getInfo()
(/home/gazetacom/public_html/site2026/plugins/system/debug/src/DataCollector/InfoCollector.php:136)
at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect()
(/home/gazetacom/public_html/site2026/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238)
at DebugBar\DebugBar->collect()
(/home/gazetacom/public_html/site2026/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:265)
at DebugBar\DebugBar->getData()
(/home/gazetacom/public_html/site2026/plugins/system/debug/src/JavascriptRenderer.php:119)
at Joomla\Plugin\System\Debug\JavascriptRenderer->render()
(/home/gazetacom/public_html/site2026/plugins/system/debug/src/Extension/Debug.php:368)
at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond(object(Event))
(/home/gazetacom/public_html/site2026/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onAfterRespond')
(/home/gazetacom/public_html/site2026/libraries/src/Application/CMSApplication.php:332)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/gazetacom/public_html/site2026/includes/app.php:61)
at require_once('/home/gazetacom/public_html/site2026/includes/app.php')
(/home/gazetacom/public_html/site2026/index.php:32)
|