Deprecated: Constant E_STRICT is deprecated in /alt/home/webmaster.grajlandiacompl/www/domeny/grajlandia.com.pl/config/defines.inc.php on line 36 Warning: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in /alt/home/webmaster.grajlandiacompl/www/domeny/grajlandia.com.pl/src/Core/Session/SessionHandler.php on line 111 Warning: Cannot modify header information - headers already sent by (output started at /alt/home/webmaster.grajlandiacompl/www/domeny/grajlandia.com.pl/config/defines.inc.php:36) in /alt/home/webmaster.grajlandiacompl/www/domeny/grajlandia.com.pl/classes/exception/PrestaShopException.php on line 41
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cl.additional_description' in 'field list'
at line 153 in file classes/db/DbPDO.php
148. protected function _query($sql)
149. {
150. try {
151. return $this->link->query($sql);
152. } catch (PDOException $exception) {
153. throw new PrestaShopException($exception->getMessage(), (int) $exception->getCode(), $exception);
154. }
155. }
156.
157. /**
158. * 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. }
Argument [0] SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description` FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 45 AND `active` = 1 AND cg.`id_group` =1 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
609. || stripos($sql, 'dumpfile') !== false
610. ) {
611. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
612. }
613.
614. $this->result = $this->query($sql);
615.
616. if (!$this->result) {
617. $result = false;
618. } else {
619. if (!$array) {
Argument [0] SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description` FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 45 AND `active` = 1 AND cg.`id_group` =1 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
911. $sqlGroupsJoin = 'LEFT JOIN `' . _DB_PREFIX_ . 'category_group` cg ON (cg.`id_category` = c.`id_category`)';
912. $groups = FrontController::getCurrentCustomerGroups();
913. $sqlGroupsWhere = 'AND cg.`id_group` ' . (count($groups) ? 'IN (' . implode(',', $groups) . ')' : '=' . (int) Configuration::get('PS_UNIDENTIFIED_GROUP'));
914. }
915.
916. $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
917. SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description`
918. FROM `' . _DB_PREFIX_ . 'category` c
919. ' . Shop::addSqlAssociation('category', 'c') . '
920. LEFT JOIN `' . _DB_PREFIX_ . 'category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = ' . (int) $idLang . ' ' . Shop::addSqlRestrictionOnLang('cl') . ')
921. ' . $sqlGroupsJoin . '
Argument [0] SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description` FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 45 AND `active` = 1 AND cg.`id_group` =1 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
225. $category['id_category'],
226. $category['link_rewrite']
227. );
228.
229. return $category;
230. }, $this->category->getSubCategories($this->context->language->id));
231. }
232.
233. protected function getImage($object, $id_image)
234. {
235. $retriever = new ImageRetriever(
Argument [0] 1
113. $categoryVar = $filteredCategory['object'];
114. }
115.
116. $this->context->smarty->assign([
117. 'category' => $categoryVar,
118. 'subcategories' => $this->getTemplateVarSubCategories(),
119. ]);
120. }
121.
122. /**
123. * {@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();