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;
37.
38. }
39. }
40. }
41. $link = new Link();
42. $url = $link->getProductLink($this->product->id);
43. $this->context->smarty->assign('back', $url);
44.
45. $pack_prod_distancia = array();
46. $pack_prod_online = array();
47.
Argument [0]
161.
162. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
163. $this->initHeader();
164.
165. if ($this->viewAccess())
166. $this->initContent();
167. else
168. $this->errors[] = Tools::displayError('Access denied.');
169.
170. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
171. $this->initFooter();
342. // Execute hook dispatcher
343. if (isset($params_hook_action_dispatcher))
344. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
345.
346. // Running controller
347. $controller->run();
348. }
349. catch (PrestaShopException $e)
350. {
351. $e->displayMessage();
352. }
22. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23. * International Registered Trademark & Property of PrestaShop SA
24. */
25.
26. require(dirname(__FILE__).'/config/config.inc.php');
27. Dispatcher::getInstance()->dispatch();
28.