$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); ->select($this->db->quoteName('data')) ->from($this->db->quoteName('#__session')) ->where($this->db->quoteName('session_id') . ' = ?') ->bind(1, $session_id); $this->db->setQuery($query); return (string) $this->db->loadResult(); } catch (\Exception $e) { throw new \RuntimeException( sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line) ); } if (!session_start()) { throw new \RuntimeException('Failed to start the session'); } $this->isActive(); $this->setId($session_clean); $cookie->set($session_name, '', time() - 3600); } } parent::start(); // Try loading data from the session if (isset($_SESSION['joomla']) && !empty($_SESSION['joomla'])) { $this->data = unserialize(base64_decode($_SESSION['joomla'])); } if ($this->isStarted()) { return; } $this->store->start(); $this->setState(SessionState::ACTIVE); // Initialise the session $this->setCounter(); */ public function has($name) { if (!$this->isActive()) { $this->start(); } return $this->store->has($name); } $name = $args[2] . '.' . $name; } } if (parent::has($name)) { // Parent is used because of b/c, can be changed in Joomla 5 return parent::get($name, $default); } /* __CLASS__ ), E_USER_DEPRECATED ); $instance = self::getApplication()->getSession()->get('user'); if (\is_null($id)) { if (!($instance instanceof User)) { $instance = User::getInstance(); } { $renderer = $this->_doc->loadRenderer('module'); $buffer = ''; $app = Factory::getApplication(); $user = Factory::getUser(); $frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest); $menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus'); foreach (ModuleHelper::getModules($position) as $mod) { $moduleHtml = $renderer->render($mod, $params, $content); $cbuffer[$hash] = $tmpdata; $cache->store($cbuffer, 'cbuffer_' . $type); } else { $this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title); } return parent::$_buffer[$type][$name][$title]; } $replace = []; $with = []; foreach ($this->_template_tags as $jdoc => $args) { $replace[] = $jdoc; $with[] = $this->getBuffer($args['type'], $args['name'], $args['attribs']); } return str_replace($replace, $with, $this->_template); }} if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) { $this->cspNonce = $params['csp_nonce']; } $data = $this->_renderTemplate(); parent::render($caching, $params); return $data; } $this->debug = $params['debug'] ?? false; $this->error = $this->_error; $params['file'] = 'error.php'; return parent::render($cache, $params); } /** * Render the backtrace * ob_end_clean(); } $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode()); return $this->getDocument()->render( false, [ 'template' => $template->template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG, // Reset the document object in the factory, this gives us a clean slate and lets everything render properly Factory::$document = $renderer->getDocument(); Factory::getApplication()->loadDocument(Factory::$document); $data = $renderer->render($error); // If nothing was rendered, just use the message from the Exception if (empty($data)) { $data = $error->getMessage(); } * @since 3.10.0 */ public static function handleException(\Throwable $error) { static::logException($error); static::render($error); } /** * Render the error page based on an exception. * ); // Trigger the onError event. $this->triggerEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event. $this->getDispatcher()->dispatch('onBeforeRespond');// 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'; $this->options['ssl']['cipher'] ); } // Attempt to connect to the server, use error suppression to silence warnings and allow us to throw an Exception separately. $connected = @$this->connection->real_connect( $this->options['host'], $this->options['user'], $this->options['password'], null, $this->options['port'], $this->options['ssl']['cipher'] ); } // Attempt to connect to the server, use error suppression to silence warnings and allow us to throw an Exception separately. $connected = @$this->connection->real_connect( $this->options['host'], $this->options['user'], $this->options['password'], null, $this->options['port'], * * @since 1.0 */ public function getVersion() { $this->connect(); if ($this->mariadb) { // MariaDB: Strip off any leading '5.5.5-', if present return preg_replace('/^5\.5\.5-/', '', $this->connection->server_info); $db = $this->getDatabase(); $this->info = [ 'php' => php_uname(), 'dbserver' => $db->getServerType(), 'dbversion' => $db->getVersion(), 'dbcollation' => $db->getCollation(), 'dbconnectioncollation' => $db->getConnectionCollation(), 'dbconnectionencryption' => $db->getConnectionEncryption(), 'dbconnencryptsupported' => $db->isConnectionEncryptionSupported(), 'phpversion' => PHP_VERSION, '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; } /** { $http = $this->initStackSession(); $data = null; if (!$this->isDataPersisted() || $this->stackAlwaysUseSessionStorage) { $data = $this->getData(); } elseif ($this->data === null) { $this->collect(); } $stack = $http->getSessionValue($this->stackSessionNamespace); $this->debugBar->addCollector(new LanguageErrorsCollector($this->params)); } // Only render for HTML output. if (!($this->getApplication()->getDocument() instanceof HtmlDocument)) { $this->debugBar->stackData(); return; } $debugBarRenderer = new JavascriptRenderer($this->debugBar, Uri::root(true) . '/media/vendor/debugbar/'); if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} if ($this->profiler) { $this->profiler->mark('afterCache'); } $this->getApplication()->triggerEvent('onAfterRespond'); } // Closes the application. $this->getApplication()->close(); } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} $this->input->def($key, $value); } // Trigger the onAfterRoute event. PluginHelper::importPlugin('system'); $this->triggerEvent('onAfterRoute'); $Itemid = $this->input->getInt('Itemid', null); $this->authorise($Itemid); } // Mark afterInitialise in the profiler. JDEBUG ? $this->profiler->mark('afterInitialise') : null; // Route the application $this->route(); // Mark afterRoute in the profiler. JDEBUG ? $this->profiler->mark('afterRoute') : null; if (!$this->isHandlingMultiFactorAuthentication()) { $this->sanityCheckSystemVariables(); $this->setupLogging(); $this->createExtensionNamespaceMap(); // Perform application routines. $this->doExecute(); // If we have an application document object, render it. if ($this->document instanceof \Joomla\CMS\Document\Document) { // Render the application output. $this->render();// 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';|
[2/2]
Error
|
|---|
Error:
mysqli object is not fully initialized
at /home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137
at mysqli->prepare('SELECT `data`FROM `q1jpe_session`WHERE `session_id` = ?')
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137)
at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT `data`FROM `q1jpe_session`WHERE `session_id` = ?')
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089)
at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT `data`FROM `q1jpe_session`WHERE `session_id` = ?')
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900)
at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:259)
at Joomla\Session\Handler\DatabaseHandler->read('d8057682f66ccf17eaa702fa3084152b')
at session_start()
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:478)
at Joomla\Session\Storage\NativeStorage->start()
(/home/websitesunlcom/public_html/create/libraries/src/Session/Storage/JoomlaStorage.php:295)
at Joomla\CMS\Session\Storage\JoomlaStorage->start()
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/session/src/Session.php:406)
at Joomla\Session\Session->start()
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/session/src/Session.php:333)
at Joomla\Session\Session->has('user')
(/home/websitesunlcom/public_html/create/libraries/src/Session/Session.php:194)
at Joomla\CMS\Session\Session->get('user')
(/home/websitesunlcom/public_html/create/libraries/src/Factory.php:372)
at Joomla\CMS\Factory::getUser()
(/home/websitesunlcom/public_html/create/libraries/src/Document/Renderer/Html/ModulesRenderer.php:45)
at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('debug', array('name' => 'debug', 'style' => 'none'), null)
(/home/websitesunlcom/public_html/create/libraries/src/Document/HtmlDocument.php:565)
at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'debug', array('name' => 'debug', 'style' => 'none'))
(/home/websitesunlcom/public_html/create/libraries/src/Document/HtmlDocument.php:833)
at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
(/home/websitesunlcom/public_html/create/libraries/src/Document/HtmlDocument.php:637)
at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'hot_polygons', 'directory' => '/home/websitesunlcom/public_html/create/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/home/websitesunlcom/public_html/create/libraries/src/Document/ErrorDocument.php:139)
at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'hot_polygons', 'directory' => '/home/websitesunlcom/public_html/create/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/home/websitesunlcom/public_html/create/libraries/src/Error/Renderer/HtmlRenderer.php:70)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(mysqli_sql_exception))
(/home/websitesunlcom/public_html/create/libraries/src/Exception/ExceptionHandler.php:126)
at Joomla\CMS\Exception\ExceptionHandler::render(object(mysqli_sql_exception))
(/home/websitesunlcom/public_html/create/libraries/src/Exception/ExceptionHandler.php:72)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(mysqli_sql_exception))
(/home/websitesunlcom/public_html/create/libraries/src/Application/CMSApplication.php:322)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/websitesunlcom/public_html/create/includes/app.php:61)
at require_once('/home/websitesunlcom/public_html/create/includes/app.php')
(/home/websitesunlcom/public_html/create/index.php:32)
|
|
[1/2]
mysqli_sql_exception
|
|---|
mysqli_sql_exception:
Too many connections
at /home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:309
at mysqli->real_connect('localhost', 'websitesunlcom_create', object(SensitiveParameterValue), null, 3306, null, 0)
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:309)
at Joomla\Database\Mysqli\MysqliDriver->connect()
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:690)
at Joomla\Database\Mysqli\MysqliDriver->getVersion()
(/home/websitesunlcom/public_html/create/administrator/components/com_admin/src/Model/SysinfoModel.php:315)
at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getInfo()
(/home/websitesunlcom/public_html/create/plugins/system/debug/src/DataCollector/InfoCollector.php:136)
at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect()
(/home/websitesunlcom/public_html/create/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238)
at DebugBar\DebugBar->collect()
(/home/websitesunlcom/public_html/create/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:265)
at DebugBar\DebugBar->getData()
(/home/websitesunlcom/public_html/create/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:340)
at DebugBar\DebugBar->stackData()
(/home/websitesunlcom/public_html/create/plugins/system/debug/src/Extension/Debug.php:331)
at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond(object(Event))
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onAfterRespond', object(Event))
(/home/websitesunlcom/public_html/create/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRespond')
(/home/websitesunlcom/public_html/create/plugins/system/cache/src/Extension/Cache.php:180)
at Joomla\Plugin\System\Cache\Extension\Cache->onAfterRoute(object(Event))
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onAfterRoute', object(Event))
(/home/websitesunlcom/public_html/create/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRoute')
(/home/websitesunlcom/public_html/create/libraries/src/Application/SiteApplication.php:790)
at Joomla\CMS\Application\SiteApplication->route()
(/home/websitesunlcom/public_html/create/libraries/src/Application/SiteApplication.php:232)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/home/websitesunlcom/public_html/create/libraries/src/Application/CMSApplication.php:293)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/websitesunlcom/public_html/create/includes/app.php:61)
at require_once('/home/websitesunlcom/public_html/create/includes/app.php')
(/home/websitesunlcom/public_html/create/index.php:32)
|