SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cl.additional_description' in 'field list'
at line 151 in file classes/db/DbPDO.php
146. protected function _query($sql)
147. {
148. try {
149. return $this->link->query($sql);
150. } catch (\PDOException $exception) {
151. throw new PrestaShopException($exception->getMessage(), (int) $exception->getCode(), $exception);
152. }
153. }
154.
155. /**
156. * Returns the next row from the result set.
372. {
373. if ($sql instanceof DbQuery) {
374. $sql = $sql->build();
375. }
376.
377. $this->result = $this->_query($sql);
378.
379. if (!$this->result && $this->getNumberError() == 2006) {
380. $this->connect();
381. $this->result = $this->_query($sql);
382. }
609. }
610.
611. return $this->execute($sql, $use_cache);
612. }
613.
614. $this->result = $this->query($sql);
615.
616. if (!$this->result) {
617. $result = false;
618. } else {
619. if (!$array) {
892. ' . Shop::addSqlAssociation('category', 'c') . '
893. LEFT JOIN `' . _DB_PREFIX_ . 'category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = ' . (int) $idLang . ' ' . Shop::addSqlRestrictionOnLang('cl') . ')
894. ' . $sqlGroupsJoin . '
895. WHERE `id_parent` = ' . (int) $this->id . '
896. ' . ($active ? 'AND `active` = 1' : '') . '
897. ' . $sqlGroupsWhere . '
898. GROUP BY c.`id_category`
899. ORDER BY `level_depth` ASC, category_shop.`position` ASC');
900.
901. foreach ($result as &$row) {
902. $row['id_image'] = Tools::file_exists_cache($this->image_dir . $row['id_category'] . '.jpg') ? (int) $row['id_category'] : Language::getIsoById($idLang) . '-default';
210. $category['id_category'],
211. $category['link_rewrite']
212. );
213.
214. return $category;
215. }, $this->category->getSubCategories($this->context->language->id));
216. }
217.
218. protected function getImage($object, $id_image)
219. {
220. $retriever = new ImageRetriever(
112. $categoryVar = $filteredCategory['object'];
113. }
114.
115. $this->context->smarty->assign([
116. 'category' => $categoryVar,
117. 'subcategories' => $this->getTemplateVarSubCategories(),
118. ]);
119. }
120.
121. /**
122. * {@inheritdoc}
295. /**
296. * Starts the controller process (this method should not be overridden!).
297. */
298. public function run()
299. {
300. $this->init();
301. if ($this->checkAccess()) {
302. // setMedia MUST be called before postProcess
303. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
304. $this->setMedia();
305. }
505.
506. // Execute hook dispatcher
507. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
508.
509. // Running controller
510. $controller->run();
511.
512. // Execute hook dispatcher after
513. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
514. } catch (PrestaShopException $e) {
515. $e->displayMessage();
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();