Invalid product vars
at line 104 in file classes/Link.php
98. if (is_array($product) && isset($product['id_product']))
99. $product = new Product($product['id_product'], false, $id_lang, $id_shop);
100. elseif ((int)$product)
101. $product = new Product((int)$product, false, $id_lang, $id_shop);
102. else
103. throw new PrestaShopException('Invalid product vars');
104. }
105.
106. // Set available keywords
107. $params = array();
108. $params['id'] = $product->id;
487.
488. if (!empty(Context::getContext()->controller->php_self))
489. $controller = Context::getContext()->controller->php_self;
490.
491. if ($controller == 'product' && isset($params['id_product']))
492. return $this->getProductLink((int)$params['id_product'], null, null, null, (int)$id_lang);
493. elseif ($controller == 'category' && isset($params['id_category']))
494. return $this->getCategoryLink((int)$params['id_category'], null, (int)$id_lang);
495. elseif ($controller == 'supplier' && isset($params['id_supplier']))
496. return $this->getSupplierLink((int)$params['id_supplier'], null, (int)$id_lang);
497. elseif ($controller == 'manufacturer' && isset($params['id_manufacturer']))
Argument [0] 0 Argument [1] Argument [2] Argument [3] Argument [4] 1
66. <?php if (isset($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value])) {?>
67. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_rewrite_urls']->value[$_smarty_tpl->tpl_vars['indice_lang']->value], ENT_QUOTES, 'UTF-8', true);?>
68. " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name'];?>
69. ">
70. <?php } else { ?>
71. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getLanguageLink($_smarty_tpl->tpl_vars['language']->value['id_lang']), ENT_QUOTES, 'UTF-8', true);?>
72. " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name'];?>
73. ">
74. <?php }?>
75. <?php }?>
76. <span><img src="<?php echo $_smarty_tpl->tpl_vars['img_lang_dir']->value;?>
Argument [0] 1
182. }
183. array_unshift($_template->_capture_stack, array());
184. //
185. // render compiled template
186. //
187. $_template->properties['unifunc']($_template);
188. // any unclosed {capture} tags ?
189. if (isset($_template->_capture_stack[0][0])) {
190. $_template->capture_error();
191. }
192. array_shift($_template->_capture_stack);
Argument [0]