$this->context->customer->isLogged(): bool(false)
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND (EXISTS(SELECT 1 FROM `ps_category_product` cp
JOIN `ps_category_g...' at line 17SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`,
pl.`meta_keywords`, pl.`meta_title`, pl.`name`, pl.`available_now`, pl.`available_later`, image_shop.`id_image` id_image, il.`legend`, m.`name` AS manufacturer_name,
product_shop.`date_add` > "2024-12-06" as new,
product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute
FROM `ps_product` p
INNER JOIN ps_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN `ps_product_lang` `pl` ON
p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 1 AND pl.id_shop = 1
LEFT JOIN `ps_image_shop` `image_shop` ON image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1
LEFT JOIN `ps_image_lang` `il` ON image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 1
LEFT JOIN `ps_manufacturer` `m` ON m.`id_manufacturer` = p.`id_manufacturer`
LEFT JOIN `ps_product_attribute_shop` `product_attribute_shop` ON p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1
LEFT JOIN ps_stock_available stock
ON (stock.id_product = p.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1 AND stock.id_shop_group = 0 )
WHERE (product_shop.`active` = 1) AND (product_shop.`visibility` IN ("both", "catalog")) AND (product_shop.`id_product` IN ()) AND (EXISTS(SELECT 1 FROM `ps_category_product` cp
JOIN `ps_category_group` cg ON (cp.id_category = cg.id_category AND cg.`id_group` = 1)
WHERE cp.`id_product` = p.`id_product`))
LIMIT 12
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
Argument [0] SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, pl.`available_now`, pl.`available_later`, image_shop.`id_image` id_image, il.`legend`, m.`name` AS manufacturer_name, product_shop.`date_add` > "2024-12-06" as new, product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute FROM `ps_product` p INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1) LEFT JOIN `ps_product_lang` `pl` ON p.`id_product` = pl.`id_product` AND pl.`id_lang` = 1 AND pl.id_shop = 1 LEFT JOIN `ps_image_shop` `image_shop` ON image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1 LEFT JOIN `ps_image_lang` `il` ON image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 1 LEFT JOIN `ps_manufacturer` `m` ON m.`id_manufacturer` = p.`id_manufacturer` LEFT JOIN `ps_product_attribute_shop` `product_attribute_shop` ON p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1 LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) WHERE (product_shop.`active` = 1) AND (product_shop.`visibility` IN ("both", "catalog")) AND (product_shop.`id_product` IN ()) AND (EXISTS(SELECT 1 FROM `ps_category_product` cp JOIN `ps_category_group` cg ON (cp.id_category = cg.id_category AND cg.`id_group` = 1) WHERE cp.`id_product` = p.`id_product`)) LIMIT 12
638. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
639. }
640. return $this->execute($sql, $use_cache);
641. }
642.
643. $this->result = $this->query($sql);
644.
645. if (!$this->result) {
646. $result = false;
647. } else {
648. if (!$array) {
Argument [0] SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, pl.`available_now`, pl.`available_later`, image_shop.`id_image` id_image, il.`legend`, m.`name` AS manufacturer_name, product_shop.`date_add` > "2024-12-06" as new, product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute FROM `ps_product` p INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1) LEFT JOIN `ps_product_lang` `pl` ON p.`id_product` = pl.`id_product` AND pl.`id_lang` = 1 AND pl.id_shop = 1 LEFT JOIN `ps_image_shop` `image_shop` ON image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1 LEFT JOIN `ps_image_lang` `il` ON image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 1 LEFT JOIN `ps_manufacturer` `m` ON m.`id_manufacturer` = p.`id_manufacturer` LEFT JOIN `ps_product_attribute_shop` `product_attribute_shop` ON p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1 LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) WHERE (product_shop.`active` = 1) AND (product_shop.`visibility` IN ("both", "catalog")) AND (product_shop.`id_product` IN ()) AND (EXISTS(SELECT 1 FROM `ps_category_product` cp JOIN `ps_category_group` cg ON (cp.id_category = cg.id_category AND cg.`id_group` = 1) WHERE cp.`id_product` = p.`id_product`)) LIMIT 12
187. $sql->select('product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute');
188. $sql->leftJoin('product_attribute_shop', 'product_attribute_shop', 'p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop='.(int)$this->context->shop->id);
189. }
190. $sql->join(Product::sqlStock('p', 0));
191.
192. $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
193.
194. if (!$result) {
195. return false;
196. }
197.
Argument [0] DbQuery Object ( [query:protected] => Array ( [type] => SELECT [select] => Array ( [0] => p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, pl.`available_now`, pl.`available_later`, image_shop.`id_image` id_image, il.`legend`, m.`name` AS manufacturer_name, product_shop.`date_add` > "2024-12-06" as new [1] => product_attribute_shop.minimal_quantity AS product_attribute_minimal_quantity, IFNULL(product_attribute_shop.id_product_attribute,0) id_product_attribute ) [from] => Array ( [0] => `ps_product` p ) [join] => Array ( [0] => INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1) [1] => LEFT JOIN `ps_product_lang` `pl` ON p.`id_product` = pl.`id_product` AND pl.`id_lang` = 1 AND pl.id_shop = 1 [2] => LEFT JOIN `ps_image_shop` `image_shop` ON image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1 [3] => LEFT JOIN `ps_image_lang` `il` ON image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 1 [4] => LEFT JOIN `ps_manufacturer` `m` ON m.`id_manufacturer` = p.`id_manufacturer` [5] => LEFT JOIN `ps_product_attribute_shop` `product_attribute_shop` ON p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1 [6] => LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) ) [where] => Array ( [0] => product_shop.`active` = 1 [1] => product_shop.`visibility` IN ("both", "catalog") [2] => product_shop.`id_product` IN () [3] => EXISTS(SELECT 1 FROM `ps_category_product` cp JOIN `ps_category_group` cg ON (cp.id_category = cg.id_category AND cg.`id_group` = 1) WHERE cp.`id_product` = p.`id_product`) ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( ) [limit] => Array ( [offset] => 0 [limit] => 12 ) ) )
243. public function hookDisplayHome($params)
244. {
245. // $products_on_page = Configuration::get('SEZAM_LATEST_PRODUCTS_NO');
246. $products_on_page = 4;
247. $latest = new Latest($params);
248. $products = $latest->getProducts();
249. $this->context->smarty->assign(
250. array(
251. 'products' => $products,
252. 'itemsperpage' => 12/$products_on_page,
253. 'columnspage' => 12/$products_on_page,
1367. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
1368. }
1369.
1370. // Call hook method
1371. if ($hook_callable) {
1372. $display = $moduleInstance->{'hook'.$hook_name}($hook_args);
1373. } elseif ($hook_retro_callable) {
1374. $display = $moduleInstance->{'hook'.$retro_hook_name}($hook_args);
1375. }
1376.
1377. $output .= $display;
Argument [0]
1151. // $this->_load_owl_carousel_lib = LeomanagewidgetsHelper::enableLoadOwlCarouselLib($content['data']);
1152. $row['content'] = $this->getWidgetContent($hook_name, $row['key_widget'], $content['type'], $content['data']);
1153. } else {
1154. # LOAD MODULE
1155. if (isset($row['module_name']) && isset($row['hook_name']) && $row['module_name'] && $row['hook_name']) {
1156. $row['content'] = $this->execModuleHook($row['hook_name'], array(), $row['module_name'], false, $this->context->shop->id);
1157. }
1158. }
1159. }
1160. }
1161. }
Argument [0] displayHome Argument [1] Array ( ) Argument [2] sezam_latest Argument [3] Argument [4] 1
1237. //return if don't exist
1238. if (!isset($this->_groupList[$hook_name])) {
1239. return false;
1240. }
1241. $groups = array();
1242. $groups = $this->_setGroupData($this->_groupList[$hook_name], $hook_name);
1243.
1244. $this->smarty->assign('leoGroup', $groups);
1245.
1246. if ($this->_has_bg_style) {
1247. $this->smarty->assign('LEO_BG_STYLE_DATA', $this->_bg_style_config_data);
Argument [0] Array ( [0] => Array ( [id_shop] => 1 [position] => 1 [active] => 1 [hook_name] => displayhome [type] => [id] => 118 [class] => row Home-product [title_1] => [title] => [columns] => Array ( [0] => Array ( [id_group] => 118 [id_shop] => 1 [position] => 1 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 254 [id_column] => 233 [position] => 1 [active] => 1 [key_widget] => 1412072215 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 230 [name] => Home - Featured Products ) ) [id] => 233 [class] => [lg] => 12 [md] => 12 [sm] => 12 [xs] => 12 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-12 col-md-12 col-sm-12 col-xs-12 col-sp-12 ) [1] => Array ( [id_group] => 118 [id_shop] => 1 [position] => 2 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 253 [id_column] => 232 [position] => 1 [active] => 1 [key_widget] => 1405484836 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 217 [name] => Home - Banner - Bannery na stronie głównej ) ) [id] => 232 [class] => hidden-sp hidden-xs banner-center [lg] => 12 [md] => 12 [sm] => 12 [xs] => 12 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [skinanimate] => [animateoffset] => [delayanimate] => [col_value] => col-lg-12 col-md-12 col-sm-12 col-xs-12 col-sp-12 ) [2] => Array ( [id_group] => 118 [id_shop] => 1 [position] => 3 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 275 [id_column] => 234 [position] => 1 [active] => 1 [key_widget] => 0 [module_name] => sezam_latest [hook_name] => displayHome [type] => 1 [params] => W10= [id_shop] => 1 [id_leowidgets] => [name] => ) [1] => Array ( [id] => 273 [id_column] => 234 [position] => 2 [active] => 1 [key_widget] => 1558700669 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 254 [name] => Home - Kolekcja Firuze ) [2] => Array ( [id] => 272 [id_column] => 234 [position] => 3 [active] => 1 [key_widget] => 1556276109 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 246 [name] => Strona główna - Zegarki - Pierścionki zaręczynowe ) ) [id] => 234 [class] => [lg] => 12 [md] => 12 [sm] => 12 [xs] => 12 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-12 col-md-12 col-sm-12 col-xs-12 col-sp-12 ) [3] => Array ( [id_group] => 118 [id_shop] => 1 [position] => 4 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 256 [id_column] => 235 [position] => 1 [active] => 1 [key_widget] => 1412234414 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 236 [name] => Home - Oferta - SEO ) ) [id] => 235 [class] => [lg] => 12 [md] => 12 [sm] => 12 [xs] => 12 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-12 col-md-12 col-sm-12 col-xs-12 col-sp-12 ) ) ) [1] => Array ( [id_shop] => 1 [position] => 2 [active] => 1 [hook_name] => displayhome [type] => [id] => 123 [class] => row Special-product [title_1] => [title] => [columns] => Array ( [0] => Array ( [id_group] => 123 [id_shop] => 1 [position] => 1 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 266 [id_column] => 245 [position] => 1 [active] => 1 [key_widget] => 1561552153 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 258 [name] => Home - łańcuchy na stronie głównej ) ) [id] => 245 [class] => Most-viewed [lg] => 3 [md] => 3 [sm] => 6 [xs] => 6 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-3 col-md-3 col-sm-6 col-xs-6 col-sp-12 ) [1] => Array ( [id_group] => 123 [id_shop] => 1 [position] => 2 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 267 [id_column] => 246 [position] => 1 [active] => 1 [key_widget] => 1412384874 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 238 [name] => Home - Special ) ) [id] => 246 [class] => [lg] => 3 [md] => 3 [sm] => 6 [xs] => 6 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-3 col-md-3 col-sm-6 col-xs-6 col-sp-12 ) [2] => Array ( [id_group] => 123 [id_shop] => 1 [position] => 3 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 268 [id_column] => 247 [position] => 1 [active] => 1 [key_widget] => 1412384841 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 237 [name] => Home - bestseller ) ) [id] => 247 [class] => [lg] => 3 [md] => 3 [sm] => 6 [xs] => 6 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-3 col-md-3 col-sm-6 col-xs-6 col-sp-12 ) [3] => Array ( [id_group] => 123 [id_shop] => 1 [position] => 4 [active] => 1 [rows] => Array ( [0] => Array ( [id] => 269 [id_column] => 248 [position] => 1 [active] => 1 [key_widget] => 1412764615 [module_name] => [hook_name] => [type] => 0 [params] => W10= [id_shop] => 1 [id_leowidgets] => 241 [name] => Home- Product ) ) [id] => 248 [class] => Most-viewed [lg] => 3 [md] => 3 [sm] => 6 [xs] => 6 [sp] => 12 [background] => [pages] => [specific] => all [controllerids] => [col_value] => col-lg-3 col-md-3 col-sm-6 col-xs-6 col-sp-12 ) ) ) ) Argument [1] displayhome
1540. return $this->_processHook('displayLeftColumn');
1541. }
1542.
1543. public function hookDisplayHome()
1544. {
1545. return $this->_processHook('displayHome');
1546. }
1547.
1548. public function hookDisplayFooter()
1549. {
1550. return $this->_processHook('displayFooter').$this->header_content;
Argument [0] displayHome
586. }
587. }
588.
589. // Immediately return the result if we do not log performances
590. if (!Module::$_log_modules_perfs) {
591. return $module->{$method}($params);
592. }
593.
594. // Store time and memory before and after hook call and save the result in the database
595. $time_start = microtime(true);
596. $memory_start = memory_get_usage(true);
541. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
542. }
543.
544. // Call hook method
545. if ($hook_callable) {
546. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
547. } elseif ($hook_retro_callable) {
548. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
549. }
550.
551. // Live edit
Argument [0] Argument [1] hookdisplayHome Argument [2]
35. public function initContent()
36. {
37. parent::initContent();
38. $this->addJS(_THEME_JS_DIR_.'index.js');
39.
40. $this->context->smarty->assign(array('HOOK_HOME' => Hook::exec('displayHome'),
41. 'HOOK_HOME_TAB' => Hook::exec('displayHomeTab'),
42. 'HOOK_HOME_TAB_CONTENT' => Hook::exec('displayHomeTabContent')
43. ));
44. $this->setTemplate(_PS_THEME_DIR_.'index.tpl');
45. }
Argument [0] displayHome
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();