return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { $result = addcslashes($result, '%_'); } return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { $result = addcslashes($result, '%_'); } } return $text; } return '\'' . ($escape ? $this->escape($text) : $text) . '\''; } /** * Quotes a binary string to database requirements for use in database queries. * ) ->join( 'LEFT', $db->quoteName('#__extensions', 'e'), $db->quoteName('e.element') . ' = ' . $db->quoteName('s.template') . ' AND ' . $db->quoteName('e.type') . ' = ' . $db->quote('template') . ' AND ' . $db->quoteName('e.client_id') . ' = ' . $db->quoteName('s.client_id') ); $db->setQuery($query); if ($cache->contains($cacheId)) { $templates = $cache->get($cacheId); } else { $templates = $this->bootComponent('templates')->getMVCFactory() ->createModel('Style', 'Administrator')->getSiteTemplates(); foreach ($templates as &$template) { // Create home element if ($template->home == 1 && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) { $template_home = clone $template; public function render(\Throwable $error): string { $app = Factory::getApplication(); // Get the current template from the application $template = $app->getTemplate(true); // Push the error object into the document $this->getDocument()->setError($error); // Add registry file for the template asset // 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'], { // Force the dot as a decimal point. return str_replace(',', '.', (string) $text); } $this->connect(); $result = $this->connection->real_escape_string((string) $text); if ($extra) { } return $text; } return '\'' . ($escape ? $this->escape($text) : $text) . '\''; } /** * Quotes a binary string to database requirements for use in database queries. * ) ->join( 'LEFT', $db->quoteName('#__extensions', 'e'), $db->quoteName('e.element') . ' = ' . $db->quoteName('s.template') . ' AND ' . $db->quoteName('e.type') . ' = ' . $db->quote('template') . ' AND ' . $db->quoteName('e.client_id') . ' = ' . $db->quoteName('s.client_id') ); $db->setQuery($query); if ($cache->contains($cacheId)) { $templates = $cache->get($cacheId); } else { $templates = $this->bootComponent('templates')->getMVCFactory() ->createModel('Style', 'Administrator')->getSiteTemplates(); foreach ($templates as &$template) { // Create home element if ($template->home == 1 && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) { $template_home = clone $template; '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()), ]; } /** $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; } $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/MysqliDriver.php:429
at mysqli->real_escape_string('template')
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:429)
at Joomla\Database\Mysqli\MysqliDriver->escape('template')
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/DatabaseDriver.php:1550)
at Joomla\Database\DatabaseDriver->quote('template')
(/home/websitesunlcom/public_html/create/administrator/components/com_templates/src/Model/StyleModel.php:767)
at Joomla\Component\Templates\Administrator\Model\StyleModel->getSiteTemplates()
(/home/websitesunlcom/public_html/create/libraries/src/Application/SiteApplication.php:453)
at Joomla\CMS\Application\SiteApplication->getTemplate(true)
(/home/websitesunlcom/public_html/create/libraries/src/Error/Renderer/HtmlRenderer.php:50)
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:427)
at Joomla\Database\Mysqli\MysqliDriver->escape('template')
(/home/websitesunlcom/public_html/create/libraries/vendor/joomla/database/src/DatabaseDriver.php:1550)
at Joomla\Database\DatabaseDriver->quote('template')
(/home/websitesunlcom/public_html/create/administrator/components/com_templates/src/Model/StyleModel.php:767)
at Joomla\Component\Templates\Administrator\Model\StyleModel->getSiteTemplates()
(/home/websitesunlcom/public_html/create/libraries/src/Application/SiteApplication.php:453)
at Joomla\CMS\Application\SiteApplication->getTemplate(true)
(/home/websitesunlcom/public_html/create/plugins/system/debug/src/DataCollector/InfoCollector.php:135)
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/plugins/system/debug/src/JavascriptRenderer.php:119)
at Joomla\Plugin\System\Debug\JavascriptRenderer->render()
(/home/websitesunlcom/public_html/create/plugins/system/debug/src/Extension/Debug.php:368)
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)
|