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;
239. }
240. } else {
241. global $cookie, $link;
242. /* Product informations */
243. $product = new Product((int)Tools::getValue('id_product'), false, (int)$cookie->id_lang);
244. $productLink = $link->getProductLink(intval($product->id), $product->link_rewrite);
245. }
246.
247. /* Image */
248. $images = $product->getImages((int)$cookie->id_lang);
249. foreach ($images as $k => $image)
Argument [0] 0 Argument [1]
3. public function initContent() {
4.
5. parent :: initContent();
6.
7. $interestedinproduct = new interestedInProduct();
8. echo $interestedinproduct->displayFrontForm();
9. }
10.
11. }
174.
175. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
176. $this->initHeader();
177.
178. if ($this->viewAccess())
179. $this->initContent();
180. else
181. $this->errors[] = Tools::displayError('Access denied.');
182.
183. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
184. $this->initFooter();
367. // Execute hook dispatcher
368. if (isset($params_hook_action_dispatcher))
369. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
370.
371. // Running controller
372. $controller->run();
373. }
374. catch (PrestaShopException $e)
375. {
376. $e->displayMessage();
377. }
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();