Invalid product vars
at line 106 in file classes/Link.php
101. if (is_array($product) && isset($product['id_product'])) {
102. $product = new Product($product['id_product'], false, $id_lang, $id_shop);
103. } elseif ((int)$product) {
104. $product = new Product((int)$product, false, $id_lang, $id_shop);
105. } else {
106. throw new PrestaShopException('Invalid product vars');
107. }
108. }
109.
110. // Set available keywords
111. $params = array();
170. <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>"displayBeforeHeaderClosingTag"),$_smarty_tpl);?>
171.
172. <?php if ($_smarty_tpl->tpl_vars['page_name']->value=='product') {?>
173. <!-- Canonical -->
174.
175. <link rel="canonical" href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getProductLink((int)$_smarty_tpl->tpl_vars['product']->value->id);?>
176. " />
177. <?php }?>
178. </head>
179. <body <?php if (isset($_smarty_tpl->tpl_vars['page_name']->value)) {?> id="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['escape'][0][0]->escapePTS($_smarty_tpl->tpl_vars['page_name']->value,'html','UTF-8');?>
180. "<?php }?> class="<?php if (isset($_smarty_tpl->tpl_vars['page_name']->value)) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['escape'][0][0]->escapePTS($_smarty_tpl->tpl_vars['page_name']->value,'html','UTF-8');?>
Argument [0] 0
183. }
184. array_unshift($_template->_capture_stack, array());
185. //
186. // render compiled template
187. //
188. $_template->properties['unifunc']($_template);
189. // any unclosed {capture} tags ?
190. if (isset($_template->_capture_stack[0][0])) {
191. $_template->capture_error();
192. }
193. array_shift($_template->_capture_stack);
Argument [0]
312. $this->smarty->update_filepath($filepath, $this->template_resource, $this->cache_id, $this->compile_id);
313. }
314. }
315. return $tpl;
316. } else {
317. return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
318. }
319. }
320. }
Argument [0] Argument [1] Argument [2] Argument [3] Argument [4] Argument [5] Argument [6] 1
298. foreach ($data as $_key => $_val) {
299. $tpl->tpl_vars[$_key] = new Smarty_variable($_val);
300. }
301. }
302.
303. return $tpl->fetch(null, null, null, null, false, false, true);
304. }
305.
306. /**
307. * Template code runtime function to set up an inline subtemplate
308. *
Argument [0] Argument [1] Argument [2] Argument [3] Argument [4] Argument [5] Argument [6] 1
33. ),false); /*/%%SmartyHeaderCode%%*/?>
34. <?php if ($_valid && !is_callable('content_659d8199e73548_75039117')) {function content_659d8199e73548_75039117($_smarty_tpl) {?>
35. <?php $_smarty_tpl->tpl_vars['left_column_size'] = new Smarty_variable(0, null, 0);?><?php $_smarty_tpl->tpl_vars['right_column_size'] = new Smarty_variable(0, null, 0);?>
36. <?php if (isset($_smarty_tpl->tpl_vars['HOOK_LEFT_COLUMN']->value)&&trim($_smarty_tpl->tpl_vars['HOOK_LEFT_COLUMN']->value)&&!$_smarty_tpl->tpl_vars['hide_left_column']->value) {?><?php $_smarty_tpl->tpl_vars['left_column_size'] = new Smarty_variable(3, null, 0);?><?php }?>
37. <?php if (isset($_smarty_tpl->tpl_vars['HOOK_RIGHT_COLUMN']->value)&&trim($_smarty_tpl->tpl_vars['HOOK_RIGHT_COLUMN']->value)&&!$_smarty_tpl->tpl_vars['hide_right_column']->value) {?><?php $_smarty_tpl->tpl_vars['right_column_size'] = new Smarty_variable(3, null, 0);?><?php }?>
38. <?php if (!empty($_smarty_tpl->tpl_vars['display_header']->value)) {?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('HOOK_HEADER'=>$_smarty_tpl->tpl_vars['HOOK_HEADER']->value), 0);?>
39. <?php }?>
40. <?php if (!empty($_smarty_tpl->tpl_vars['template']->value)) {?><?php echo $_smarty_tpl->tpl_vars['template']->value;?>
41. <?php }?>
42. <?php if (!empty($_smarty_tpl->tpl_vars['display_footer']->value)) {?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
43. <?php }?>
Argument [0] /var/www/vhosts/cloeshoponline.com/httpdocs/themes/cloeshop2k20/./header.tpl Argument [1] Argument [2] Argument [3] 0 Argument [4] Argument [5] Array ( [HOOK_HEADER] => ) Argument [6] 0
183. }
184. array_unshift($_template->_capture_stack, array());
185. //
186. // render compiled template
187. //
188. $_template->properties['unifunc']($_template);
189. // any unclosed {capture} tags ?
190. if (isset($_template->_capture_stack[0][0])) {
191. $_template->capture_error();
192. }
193. array_shift($_template->_capture_stack);
Argument [0]
105. * {@inheritDoc}
106. */
107. public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
108. {
109. $this->check_compile_cache_invalidation();
110. return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
111. }
112.
113. /**
114. * {@inheritDoc}
115. */
Argument [0] /var/www/vhosts/cloeshoponline.com/httpdocs/themes/cloeshop2k20/layout.tpl Argument [1] Argument [2] Argument [3] Argument [4] Argument [5] 1 Argument [6]
524. if (is_array($content)) {
525. foreach ($content as $tpl) {
526. $html .= $this->context->smarty->fetch($tpl);
527. }
528. } else {
529. $html = $this->context->smarty->fetch($content);
530. }
531.
532. $html = trim($html);
533.
534. if (in_array($this->controller_type, array('front', 'modulefront')) && !empty($html) && $this->getLayout()) {
Argument [0] /var/www/vhosts/cloeshoponline.com/httpdocs/themes/cloeshop2k20/layout.tpl
718. $this->displayContent();
719. $template = ob_get_contents();
720. ob_clean();
721. }
722. $this->context->smarty->assign('template', $template);
723. $this->smartyOutputContent($layout);
724. } else {
725. Tools::displayAsDeprecated('layout.tpl is missing in your theme directory');
726. if ($this->display_header) {
727. $this->smartyOutputContent(_PS_THEME_DIR_.'header.tpl');
728. }
Argument [0] /var/www/vhosts/cloeshoponline.com/httpdocs/themes/cloeshop2k20/layout.tpl
204. $this->{'displayAjax'.$action}();
205. } elseif (method_exists($this, 'displayAjax')) {
206. $this->displayAjax();
207. }
208. } else {
209. $this->display();
210. }
211. } else {
212. $this->initCursedPage();
213. $this->smartyOutputContent($this->layout);
214. }
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();