$this->statement = $connection->prepare($query); if (!$this->statement) { throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno); } } /** * Replace named parameters with numbered parameters * @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->order($db->quoteName(['m.position', 'm.ordering'])); // Set the query $db->setQuery($query); try { /** @var CallbackController $cache */ $cache = Factory::getContainer()->get(CacheControllerFactoryInterface::class) ->createCacheController('callback', ['defaultgroup' => 'com_modules']); $app->triggerEvent('onPrepareModuleList', [&$modules]); // If the onPrepareModuleList event returns an array of modules, then ignore the default module list creation if (!\is_array($modules)) { $modules = static::getModuleList(); } $app->triggerEvent('onAfterModuleList', [&$modules]); $modules = static::cleanModuleList($modules); public static function &getModules($position) { $position = strtolower($position); $result = []; $input = Factory::getApplication()->getInput(); $modules = &static::load(); $total = \count($modules); for ($i = 0; $i < $total; $i++) { if ($modules[$i]->position === $position) { $result[] = &$modules[$i]; $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); if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) { $displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing]; LayoutHelper::render('joomla.edit.frontediting_modules', $displayData); $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 * 'template' => $template->template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG, 'csp_nonce' => $app->get('csp_nonce'), 'templateInherits' => $template->parent, 'params' => $template->params, ] ); }} // 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'; throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno); } } catch (\Throwable $e) { throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e); } if ($this->columnNames === null) { $meta = $this->statement->result_metadata(); $this->statement->bindParam($key, $obj->value, $obj->dataType); } try { $this->executed = $this->statement->execute(); // If there is a monitor registered, let it know we have finished this query if ($this->monitor) { $this->monitor->stopQuery(); $query = $this->_db->getQuery(true) ->update($this->_db->quoteName($this->_tbl)) ->set($this->_db->quoteName($hitsField) . ' = (' . $this->_db->quoteName($hitsField) . ' + 1)'); $this->appendPrimaryKeys($query, $pk); $this->_db->setQuery($query); $this->_db->execute(); // Set table values in the object. $this->hits++; // Pre-processing by observers if ($hitcount) { $pk = (!empty($pk)) ? $pk : (int) $this->getState('article.id'); $table = Table::getInstance('Content', 'JTable'); $table->hit($pk); } return true; } if ($vName === 'article') { // Get/Create the model if ($model = $this->getModel($vName)) { if (ComponentHelper::getParams('com_content')->get('record_hits', 1) == 1) { $model->hit(); } } } parent::display($cachable, $safeurlparams); } // Record the actual task being fired $this->doTask = $doTask; return $this->$doTask(); } /** * Method to get a model object, loading it if required. * $config['name'] = strtolower($this->input->get('controller')); } // Execute the task for this component $controller = $this->getController($controller, ucfirst($this->app->getName()), $config); $controller->execute($task); $controller->redirect(); } /** * Get a controller from the component return; } } parent::dispatch(); }} if (!static::isEnabled($option)) { throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404); } ob_start(); $app->bootComponent($option)->getDispatcher($app)->dispatch(); $contents = ob_get_clean(); // Revert the scope $app->scope = $scope; $document->setGenerator('Joomla! - Open Source Content Management - Version ' . JVERSION); } else { $document->setGenerator('Joomla! - Open Source Content Management'); } $contents = ComponentHelper::renderComponent($component); $document->setBuffer($contents, 'component'); // Trigger the onAfterDispatch event. PluginHelper::importPlugin('system'); $this->triggerEvent('onAfterDispatch'); */ $this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout'); } // Dispatch the application $this->dispatch(); // Mark afterDispatch in the profiler. JDEBUG ? $this->profiler->mark('afterDispatch') : null; } $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'; try { if (!$this->statement->execute()) { throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno); } } catch (\Throwable $e) { throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e); $this->statement->bindParam($key, $obj->value, $obj->dataType); } try { $this->executed = $this->statement->execute(); // If there is a monitor registered, let it know we have finished this query if ($this->monitor) { $this->monitor->stopQuery(); $query = $this->_db->getQuery(true) ->update($this->_db->quoteName($this->_tbl)) ->set($this->_db->quoteName($hitsField) . ' = (' . $this->_db->quoteName($hitsField) . ' + 1)'); $this->appendPrimaryKeys($query, $pk); $this->_db->setQuery($query); $this->_db->execute(); // Set table values in the object. $this->hits++; // Pre-processing by observers if ($hitcount) { $pk = (!empty($pk)) ? $pk : (int) $this->getState('article.id'); $table = Table::getInstance('Content', 'JTable'); $table->hit($pk); } return true; } if ($vName === 'article') { // Get/Create the model if ($model = $this->getModel($vName)) { if (ComponentHelper::getParams('com_content')->get('record_hits', 1) == 1) { $model->hit(); } } } parent::display($cachable, $safeurlparams); } // Record the actual task being fired $this->doTask = $doTask; return $this->$doTask(); } /** * Method to get a model object, loading it if required. * $config['name'] = strtolower($this->input->get('controller')); } // Execute the task for this component $controller = $this->getController($controller, ucfirst($this->app->getName()), $config); $controller->execute($task); $controller->redirect(); } /** * Get a controller from the component return; } } parent::dispatch(); }} if (!static::isEnabled($option)) { throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404); } ob_start(); $app->bootComponent($option)->getDispatcher($app)->dispatch(); $contents = ob_get_clean(); // Revert the scope $app->scope = $scope; $document->setGenerator('Joomla! - Open Source Content Management - Version ' . JVERSION); } else { $document->setGenerator('Joomla! - Open Source Content Management'); } $contents = ComponentHelper::renderComponent($component); $document->setBuffer($contents, 'component'); // Trigger the onAfterDispatch event. PluginHelper::importPlugin('system'); $this->triggerEvent('onAfterDispatch'); */ $this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout'); } // Dispatch the application $this->dispatch(); // Mark afterDispatch in the profiler. JDEBUG ? $this->profiler->mark('afterDispatch') : null; } $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';|
[3/3]
PrepareStatementFailureException
|
|---|
Joomla\Database\Exception\PrepareStatementFailureException:
No such file or directory
at /home/hots4192/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:141
at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT `m`.`id`,`m`.`title`,`m`.`module`,`m`.`position`,`m`.`content`,`m`.`showtitle`,`m`.`params`,`mm`.`menuid`FROM `hotinterior_modules` AS `m`LEFT JOIN `hotinterior_modules_menu` AS `mm` ON `mm`.`moduleid` = `m`.`id`LEFT JOIN `hotinterior_extensions` AS `e` ON `e`.`element` = `m`.`module` AND `e`.`client_id` = `m`.`client_id`WHERE (((`m`.`published` = 1 AND `e`.`enabled` = 1 AND `m`.`client_id` = ? AND `m`.`access` IN (?,?)) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= ?)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= ?)) AND (`mm`.`menuid` = ? OR `mm`.`menuid` <= 0)ORDER BY `m`.`position`,`m`.`ordering`')
(/home/hots4192/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089)
at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT `m`.`id`,`m`.`title`,`m`.`module`,`m`.`position`,`m`.`content`,`m`.`showtitle`,`m`.`params`,`mm`.`menuid`FROM `hotinterior_modules` AS `m`LEFT JOIN `hotinterior_modules_menu` AS `mm` ON `mm`.`moduleid` = `m`.`id`LEFT JOIN `hotinterior_extensions` AS `e` ON `e`.`element` = `m`.`module` AND `e`.`client_id` = `m`.`client_id`WHERE (((`m`.`published` = 1 AND `e`.`enabled` = 1 AND `m`.`client_id` = :clientId AND `m`.`access` IN (:preparedArray1,:preparedArray2)) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :publishUp)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :publishDown)) AND (`mm`.`menuid` = :itemId OR `mm`.`menuid` <= 0)ORDER BY `m`.`position`,`m`.`ordering`')
(/home/hots4192/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900)
at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
(/home/hots4192/public_html/libraries/src/Helper/ModuleHelper.php:465)
at Joomla\CMS\Helper\ModuleHelper::getModuleList()
(/home/hots4192/public_html/libraries/src/Helper/ModuleHelper.php:373)
at Joomla\CMS\Helper\ModuleHelper::load()
(/home/hots4192/public_html/libraries/src/Helper/ModuleHelper.php:88)
at Joomla\CMS\Helper\ModuleHelper::getModules('debug')
(/home/hots4192/public_html/libraries/src/Document/Renderer/Html/ModulesRenderer.php:49)
at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('debug', array('name' => 'debug', 'style' => 'none'), null)
(/home/hots4192/public_html/libraries/src/Document/HtmlDocument.php:565)
at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'debug', array('name' => 'debug', 'style' => 'none'))
(/home/hots4192/public_html/libraries/src/Document/HtmlDocument.php:833)
at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
(/home/hots4192/public_html/libraries/src/Document/HtmlDocument.php:637)
at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'HotindojayaTemplate2c', 'directory' => '/home/hots4192/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/home/hots4192/public_html/libraries/src/Document/ErrorDocument.php:139)
at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'HotindojayaTemplate2c', 'directory' => '/home/hots4192/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/home/hots4192/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(ExecutionFailureException))
(/home/hots4192/public_html/libraries/src/Exception/ExceptionHandler.php:126)
at Joomla\CMS\Exception\ExceptionHandler::render(object(ExecutionFailureException))
(/home/hots4192/public_html/libraries/src/Exception/ExceptionHandler.php:72)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(ExecutionFailureException))
(/home/hots4192/public_html/libraries/src/Application/CMSApplication.php:322)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/hots4192/public_html/includes/app.php:61)
at require_once('/home/hots4192/public_html/includes/app.php')
(/home/hots4192/public_html/index.php:32)
|
|
[2/3]
ExecutionFailureException
|
|---|
Joomla\Database\Exception\ExecutionFailureException:
MySQL server has gone away
at /home/hots4192/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:442
at Joomla\Database\Mysqli\MysqliStatement->execute()
(/home/hots4192/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:675)
at Joomla\Database\DatabaseDriver->execute()
(/home/hots4192/public_html/libraries/src/Table/Table.php:1325)
at Joomla\CMS\Table\Table->hit(array('id' => 559))
(/home/hots4192/public_html/components/com_content/src/Model/ArticleModel.php:298)
at Joomla\Component\Content\Site\Model\ArticleModel->hit()
(/home/hots4192/public_html/components/com_content/src/Controller/DisplayController.php:116)
at Joomla\Component\Content\Site\Controller\DisplayController->display()
(/home/hots4192/public_html/libraries/src/MVC/Controller/BaseController.php:693)
at Joomla\CMS\MVC\Controller\BaseController->execute('display')
(/home/hots4192/public_html/libraries/src/Dispatcher/ComponentDispatcher.php:143)
at Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
(/home/hots4192/public_html/components/com_content/src/Dispatcher/Dispatcher.php:56)
at Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch()
(/home/hots4192/public_html/libraries/src/Component/ComponentHelper.php:361)
at Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
(/home/hots4192/public_html/libraries/src/Application/SiteApplication.php:208)
at Joomla\CMS\Application\SiteApplication->dispatch()
(/home/hots4192/public_html/libraries/src/Application/SiteApplication.php:249)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/home/hots4192/public_html/libraries/src/Application/CMSApplication.php:293)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/hots4192/public_html/includes/app.php:61)
at require_once('/home/hots4192/public_html/includes/app.php')
(/home/hots4192/public_html/index.php:32)
|
|
[1/3]
ExecutionFailureException
|
|---|
Joomla\Database\Exception\ExecutionFailureException:
MySQL server has gone away
at /home/hots4192/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:437
at Joomla\Database\Mysqli\MysqliStatement->execute()
(/home/hots4192/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:675)
at Joomla\Database\DatabaseDriver->execute()
(/home/hots4192/public_html/libraries/src/Table/Table.php:1325)
at Joomla\CMS\Table\Table->hit(array('id' => 559))
(/home/hots4192/public_html/components/com_content/src/Model/ArticleModel.php:298)
at Joomla\Component\Content\Site\Model\ArticleModel->hit()
(/home/hots4192/public_html/components/com_content/src/Controller/DisplayController.php:116)
at Joomla\Component\Content\Site\Controller\DisplayController->display()
(/home/hots4192/public_html/libraries/src/MVC/Controller/BaseController.php:693)
at Joomla\CMS\MVC\Controller\BaseController->execute('display')
(/home/hots4192/public_html/libraries/src/Dispatcher/ComponentDispatcher.php:143)
at Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
(/home/hots4192/public_html/components/com_content/src/Dispatcher/Dispatcher.php:56)
at Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch()
(/home/hots4192/public_html/libraries/src/Component/ComponentHelper.php:361)
at Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
(/home/hots4192/public_html/libraries/src/Application/SiteApplication.php:208)
at Joomla\CMS\Application\SiteApplication->dispatch()
(/home/hots4192/public_html/libraries/src/Application/SiteApplication.php:249)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/home/hots4192/public_html/libraries/src/Application/CMSApplication.php:293)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/hots4192/public_html/includes/app.php:61)
at require_once('/home/hots4192/public_html/includes/app.php')
(/home/hots4192/public_html/index.php:32)
|