1054
$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); ) ->bind(':currentDate2', $currentDate) ->order($this->db->quoteName('m.lft')); $items = []; $iterator = $this->db->setQuery($query)->getIterator(); foreach ($iterator as $item) { $items[$item->id] = new MenuItem((array) $item); } } // Just execute the callback if caching is disabled. if (empty($this->options['caching'])) { return \call_user_func_array($callback, $referenceArgs); } if (!$id) { // Generate an ID { /** @var CallbackController $cache */ $cache = Factory::getContainer()->get(CacheControllerFactoryInterface::class) ->createCacheController('callback', ['defaultgroup' => 'com_menus']); $this->items = $cache->get($loader, array(), md5(\get_class($this)), false); } catch (CacheExceptionInterface $e) { try { */ public function getMenu() { if (!$this->itemsLoaded) { $this->load(); foreach ($this->items as $item) { if ($item->home) { */ public function getItem($id) { $result = null; if (isset($this->getMenu()[$id])) { $result = &$this->getMenu()[$id]; } return $result; $menu = $this->getMenu(); $item = $menu->getActive(); if (!$item) { $item = $menu->getItem($this->input->getInt('Itemid', null)); } $id = 0; if (\is_object($item)) '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')) { $data = null; if (!$this->isDataPersisted() || $this->stackAlwaysUseSessionStorage) { $data = $this->getData(); } elseif ($this->data === null) { $this->collect(); } $stack = $http->getSessionValue($this->stackSessionNamespace); $stack[$this->getCurrentRequestId()] = $data; $http->setSessionValue($this->stackSessionNamespace, $stack); } // Only render for HTML output. if (!($this->app->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; } // 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';|
PrepareStatementFailureException
|
|---|
Joomla\Database\Exception\PrepareStatementFailureException:
Unknown column 'm.publish_up' in 'where clause'
at /home/autotriple/domains/citroenauto.hu/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:141
at Joomla\Database\Mysqli\MysqliStatement->__construct()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1048)
at Joomla\Database\Mysqli\MysqliDriver->prepareStatement()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900)
at Joomla\Database\DatabaseDriver->setQuery()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Menu/SiteMenu.php:155)
at Joomla\CMS\Menu\SiteMenu->Joomla\CMS\Menu\{closure}()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Cache/Controller/CallbackController.php:52)
at Joomla\CMS\Cache\Controller\CallbackController->get()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Menu/SiteMenu.php:171)
at Joomla\CMS\Menu\SiteMenu->load()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Menu/AbstractMenu.php:338)
at Joomla\CMS\Menu\AbstractMenu->getMenu()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Menu/AbstractMenu.php:157)
at Joomla\CMS\Menu\AbstractMenu->getItem()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Application/SiteApplication.php:429)
at Joomla\CMS\Application\SiteApplication->getTemplate()
(/home/autotriple/domains/citroenauto.hu/public_html/plugins/system/debug/src/DataCollector/InfoCollector.php:130)
at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238)
at DebugBar\DebugBar->collect()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:342)
at DebugBar\DebugBar->stackData()
(/home/autotriple/domains/citroenauto.hu/public_html/plugins/system/debug/debug.php:332)
at PlgSystemDebug->onAfterRespond()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch()
(/home/autotriple/domains/citroenauto.hu/public_html/libraries/src/Application/CMSApplication.php:321)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/autotriple/domains/citroenauto.hu/public_html/includes/app.php:63)
at require_once('/home/autotriple/domains/citroenauto.hu/public_html/includes/app.php')
(/home/autotriple/domains/citroenauto.hu/public_html/index.php:32)
|