mysqli_sql_exception mysqli_sql_exception

HTTP 500 Whoops, looks like something went wrong.

MySQL server has gone away

Exceptions 2

mysqli_sql_exception

  1.         $this->connection   $connection;
  2.         $this->query        $query;
  3.         $query $this->prepareParameterKeyMapping($query);
  4.         $this->statement  $connection->prepare($query);
  5.         if (!$this->statement)
  6.         {
  7.             throw new PrepareStatementFailureException($this->connection->error$this->connection->errno);
  8.         }
  1.         $this->connection   $connection;
  2.         $this->query        $query;
  3.         $query $this->prepareParameterKeyMapping($query);
  4.         $this->statement  $connection->prepare($query);
  5.         if (!$this->statement)
  6.         {
  7.             throw new PrepareStatementFailureException($this->connection->error$this->connection->errno);
  8.         }
  1.      * @since   2.0.0
  2.      * @throws  PrepareStatementFailureException
  3.      */
  4.     protected function prepareStatement(string $query): StatementInterface
  5.     {
  6.         return new MysqliStatement($this->connection$query);
  7.     }
  8.     /**
  9.      * Unlocks tables in the database.
  10.      *
  1.         $query->setLimit($limit$offset);
  2.         $sql $this->replacePrefix((string) $query);
  3.         $this->statement $this->prepareStatement($sql);
  4.         $this->sql    $query;
  5.         $this->limit  = (int) max(0$limit);
  6.         $this->offset = (int) max(0$offset);
DatabaseDriver->setQuery(object(MysqliQuery)) in /hp/mv/www/visj4/administrator/components/com_templates/src/Model/StyleModel.php (line 771)
  1.                 $db->quoteName('e.element') . ' = ' $db->quoteName('s.template')
  2.                     . ' AND ' $db->quoteName('e.type') . ' = ' $db->quote('template')
  3.                     . ' AND ' $db->quoteName('e.client_id') . ' = ' $db->quoteName('s.client_id')
  4.             );
  5.         $db->setQuery($query);
  6.         return $db->loadObjectList('id');
  7.     }
  8.     /**
StyleModel->getSiteTemplates() in /hp/mv/www/visj4/libraries/src/Application/SiteApplication.php (line 453)
  1.         if ($cache->contains($cacheId)) {
  2.             $templates $cache->get($cacheId);
  3.         } else {
  4.             $templates $this->bootComponent('templates')->getMVCFactory()
  5.                 ->createModel('Style''Administrator')->getSiteTemplates();
  6.             foreach ($templates as &$template) {
  7.                 // Create home element
  8.                 if ($template->home == && !isset($template_home) || $this->getLanguageFilter() && $template->home == $tag) {
  9.                     $template_home = clone $template;
SiteApplication->getTemplate(true) in /hp/mv/www/visj4/libraries/src/Error/Renderer/HtmlRenderer.php (line 50)
  1.     public function render(\Throwable $error): string
  2.     {
  3.         $app Factory::getApplication();
  4.         // Get the current template from the application
  5.         $template $app->getTemplate(true);
  6.         // Push the error object into the document
  7.         $this->getDocument()->setError($error);
  8.         // Add registry file for the template asset
HtmlRenderer->render(object(mysqli_sql_exception)) in /hp/mv/www/visj4/libraries/src/Exception/ExceptionHandler.php (line 126)
  1.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data)) {
  7.                 $data $error->getMessage();
  8.             }
ExceptionHandler::render(object(mysqli_sql_exception)) in /hp/mv/www/visj4/libraries/src/Exception/ExceptionHandler.php (line 72)
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException(object(mysqli_sql_exception)) in /hp/mv/www/visj4/libraries/src/Application/CMSApplication.php (line 322)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('onBeforeRespond');
CMSApplication->execute() in /hp/mv/www/visj4/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/hp/mv/www/visj4/includes/app.php') in /hp/mv/www/visj4/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

mysqli_sql_exception

MySQL server has gone away

  1.         $this->connection   $connection;
  2.         $this->query        $query;
  3.         $query $this->prepareParameterKeyMapping($query);
  4.         $this->statement  $connection->prepare($query);
  5.         if (!$this->statement)
  6.         {
  7.             throw new PrepareStatementFailureException($this->connection->error$this->connection->errno);
  8.         }
  1.         $this->connection   $connection;
  2.         $this->query        $query;
  3.         $query $this->prepareParameterKeyMapping($query);
  4.         $this->statement  $connection->prepare($query);
  5.         if (!$this->statement)
  6.         {
  7.             throw new PrepareStatementFailureException($this->connection->error$this->connection->errno);
  8.         }
  1.      * @since   2.0.0
  2.      * @throws  PrepareStatementFailureException
  3.      */
  4.     protected function prepareStatement(string $query): StatementInterface
  5.     {
  6.         return new MysqliStatement($this->connection$query);
  7.     }
  8.     /**
  9.      * Unlocks tables in the database.
  10.      *
  1.         $query->setLimit($limit$offset);
  2.         $sql $this->replacePrefix((string) $query);
  3.         $this->statement $this->prepareStatement($sql);
  4.         $this->sql    $query;
  5.         $this->limit  = (int) max(0$limit);
  6.         $this->offset = (int) max(0$offset);
DatabaseDriver->setQuery(object(MysqliQuery)) in /hp/mv/www/visj4/components/com_ars/src/Service/Router.php (line 315)
  1.                   ->select($db->quoteName('id'))
  2.                   ->from($db->quoteName('#__ars_categories'))
  3.                   ->where($db->quoteName('alias') . ' = :alias')
  4.                   ->bind(':alias'$segment);
  5.         return $db->setQuery($sql)->loadResult() ?: false;
  6.     }
  7.     public function getItemsSegment($release_id$query)
  8.     {
  9.         /** @var ReleaseTable $release */
Router->getReleasesId('joomla-form-extension-visforms', array('option' => 'com_ars', 'view' => 'categories', 'layout' => 'normal')) in /hp/mv/www/visj4/libraries/src/Component/Router/Rules/StandardRules.php (line 129)
  1.                         break;
  2.                     }
  3.                 } elseif (\is_callable([$this->router'get' ucfirst($view->name) . 'Id'])) {
  4.                     // Hand the data over to the router specific method and see if there is a content item that fits
  5.                     $key \call_user_func_array([$this->router'get' ucfirst($view->name) . 'Id'], [$segment$vars]);
  6.                     if ($key) {
  7.                         // Found the right view and the right item
  8.                         $parent       $views[$vars['view']];
  9.                         $vars['view'] = $view->name;
StandardRules->parse(array('joomla-form-extension-visforms', 'joomla-form-extension-visforms-stable', 'visforms_j3-3-6_3-10-3-2-zip'), array('option' => 'com_ars', 'view' => 'categories', 'layout' => 'normal')) in /hp/mv/www/visj4/libraries/src/Component/Router/RouterView.php (line 250)
  1.     {
  2.         $vars = [];
  3.         // Process the parsed variables based on custom defined rules
  4.         foreach ($this->rules as $rule) {
  5.             $rule->parse($segments$vars);
  6.         }
  7.         return $vars;
  8.     }
RouterView->parse(array('joomla-form-extension-visforms', 'joomla-form-extension-visforms-stable', 'visforms_j3-3-6_3-10-3-2-zip')) in /hp/mv/www/visj4/libraries/src/Router/SiteRouter.php (line 287)
  1.             if (\count($segments)) {
  2.                 // Handle component route
  3.                 $component preg_replace('/[^A-Z0-9_\.-]/i'''$uri->getVar('option'));
  4.                 $crouter   $this->getComponentRouter($component);
  5.                 $uri->setQuery(array_merge($uri->getQuery(true), $crouter->parse($segments)));
  6.             }
  7.             $route implode('/'$segments);
  8.         }
SiteRouter->parseSefRoute(object(SiteRouter), object(Uri)) in /hp/mv/www/visj4/libraries/src/Router/Router.php (line 384)
  1.         if (!\array_key_exists('parse' $stage$this->rules)) {
  2.             throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)'$stage__METHOD__));
  3.         }
  4.         foreach ($this->rules['parse' $stage] as $rule) {
  5.             $rule($this$uri);
  6.         }
  7.     }
  8.     /**
  9.      * Process the build uri query data based on custom defined rules
Router->processParseRules(object(Uri)) in /hp/mv/www/visj4/libraries/src/Router/Router.php (line 147)
  1.     {
  2.         // Do the preprocess stage of the URL parse process
  3.         $this->processParseRules($uriself::PROCESS_BEFORE);
  4.         // Do the main stage of the URL parse process
  5.         $this->processParseRules($uri);
  6.         // Do the postprocess stage of the URL parse process
  7.         $this->processParseRules($uriself::PROCESS_AFTER);
  8.         // Check if all parts of the URL have been parsed.
Router->parse(object(Uri), true) in /hp/mv/www/visj4/libraries/src/Application/SiteApplication.php (line 746)
  1.         // Get the full request URI.
  2.         $uri = clone Uri::getInstance();
  3.         // It is not possible to inject the SiteRouter as it requires a SiteApplication
  4.         // and we would end in an infinite loop
  5.         $result $this->getContainer()->get(SiteRouter::class)->parse($uritrue);
  6.         $active $this->getMenu()->getActive();
  7.         if (
  8.             $active !== null
  1.         // Mark afterInitialise in the profiler.
  2.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  3.         // Route the application
  4.         $this->route();
  5.         // Mark afterRoute in the profiler.
  6.         JDEBUG $this->profiler->mark('afterRoute') : null;
  7.         if (!$this->isHandlingMultiFactorAuthentication()) {
SiteApplication->doExecute() in /hp/mv/www/visj4/libraries/src/Application/CMSApplication.php (line 293)
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8.                 // Render the application output.
  9.                 $this->render();
CMSApplication->execute() in /hp/mv/www/visj4/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/hp/mv/www/visj4/includes/app.php') in /hp/mv/www/visj4/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] mysqli_sql_exception
mysqli_sql_exception:
MySQL server has gone away

  at /hp/mv/www/visj4/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137
  at mysqli->prepare('SELECT `id`,`home`,`template`,`s`.`params`,`inheritable`,`parent`FROM `vf38_template_styles` AS `s`LEFT JOIN `vf38_extensions` AS `e` ON `e`.`element` = `s`.`template` AND `e`.`type` = \'template\' AND `e`.`client_id` = `s`.`client_id`WHERE `s`.`client_id` = 0 AND `e`.`enabled` = 1')
     (/hp/mv/www/visj4/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137)
  at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT `id`,`home`,`template`,`s`.`params`,`inheritable`,`parent`FROM `vf38_template_styles` AS `s`LEFT JOIN `vf38_extensions` AS `e` ON `e`.`element` = `s`.`template` AND `e`.`type` = \'template\' AND `e`.`client_id` = `s`.`client_id`WHERE `s`.`client_id` = 0 AND `e`.`enabled` = 1')
     (/hp/mv/www/visj4/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089)
  at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT `id`,`home`,`template`,`s`.`params`,`inheritable`,`parent`FROM `vf38_template_styles` AS `s`LEFT JOIN `vf38_extensions` AS `e` ON `e`.`element` = `s`.`template` AND `e`.`type` = \'template\' AND `e`.`client_id` = `s`.`client_id`WHERE `s`.`client_id` = 0 AND `e`.`enabled` = 1')
     (/hp/mv/www/visj4/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900)
  at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
     (/hp/mv/www/visj4/administrator/components/com_templates/src/Model/StyleModel.php:771)
  at Joomla\Component\Templates\Administrator\Model\StyleModel->getSiteTemplates()
     (/hp/mv/www/visj4/libraries/src/Application/SiteApplication.php:453)
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/hp/mv/www/visj4/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(mysqli_sql_exception))
     (/hp/mv/www/visj4/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(mysqli_sql_exception))
     (/hp/mv/www/visj4/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(mysqli_sql_exception))
     (/hp/mv/www/visj4/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/hp/mv/www/visj4/includes/app.php:61)
  at require_once('/hp/mv/www/visj4/includes/app.php')
     (/hp/mv/www/visj4/index.php:32)                
[1/2] mysqli_sql_exception
mysqli_sql_exception:
MySQL server has gone away

  at /hp/mv/www/visj4/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137
  at mysqli->prepare('SELECT `id`FROM `vf38_ars_categories`WHERE `alias` = ?')
     (/hp/mv/www/visj4/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:137)
  at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT `id`FROM `vf38_ars_categories`WHERE `alias` = ?')
     (/hp/mv/www/visj4/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089)
  at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT `id`FROM `vf38_ars_categories`WHERE `alias` = :alias')
     (/hp/mv/www/visj4/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900)
  at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
     (/hp/mv/www/visj4/components/com_ars/src/Service/Router.php:315)
  at Akeeba\Component\ARS\Site\Service\Router->getReleasesId('joomla-form-extension-visforms', array('option' => 'com_ars', 'view' => 'categories', 'layout' => 'normal'))
     (/hp/mv/www/visj4/libraries/src/Component/Router/Rules/StandardRules.php:129)
  at Joomla\CMS\Component\Router\Rules\StandardRules->parse(array('joomla-form-extension-visforms', 'joomla-form-extension-visforms-stable', 'visforms_j3-3-6_3-10-3-2-zip'), array('option' => 'com_ars', 'view' => 'categories', 'layout' => 'normal'))
     (/hp/mv/www/visj4/libraries/src/Component/Router/RouterView.php:250)
  at Joomla\CMS\Component\Router\RouterView->parse(array('joomla-form-extension-visforms', 'joomla-form-extension-visforms-stable', 'visforms_j3-3-6_3-10-3-2-zip'))
     (/hp/mv/www/visj4/libraries/src/Router/SiteRouter.php:287)
  at Joomla\CMS\Router\SiteRouter->parseSefRoute(object(SiteRouter), object(Uri))
     (/hp/mv/www/visj4/libraries/src/Router/Router.php:384)
  at Joomla\CMS\Router\Router->processParseRules(object(Uri))
     (/hp/mv/www/visj4/libraries/src/Router/Router.php:147)
  at Joomla\CMS\Router\Router->parse(object(Uri), true)
     (/hp/mv/www/visj4/libraries/src/Application/SiteApplication.php:746)
  at Joomla\CMS\Application\SiteApplication->route()
     (/hp/mv/www/visj4/libraries/src/Application/SiteApplication.php:232)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/hp/mv/www/visj4/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/hp/mv/www/visj4/includes/app.php:61)
  at require_once('/hp/mv/www/visj4/includes/app.php')
     (/hp/mv/www/visj4/index.php:32)                

Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/lib/php5) in /hp/mv/www/visj4/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 114