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();
988. }
989. else
990. {
991. /* Product informations */
992. $product = new Product((int)Tools::getValue('id_product'), false, $id_lang);
993. $product_link = $link->getProductLink((int)$product->id, $product->link_rewrite);
994. }
995.
996. /* Image */
997. $images = $product->getImages($id_lang);
998. $cover = array();
Argument [0] 0 Argument [1]
14. public function initContent()
15. {
16. parent::initContent();
17.
18. $interestedinproduct = new InterestedInProduct();
19. echo $interestedinproduct->displayFrontForm();
20. }
21.
22. }
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))) {
1395. try
1396. {
1397. $controller = Controller::getController($controller_class);
1398. if (isset($params_hook_action_dispatcher))
1399. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
1400. $controller->run();
1401. if ($this->_isPageCacheActive())
1402. {
1403. PageCache::displayStats(false, $pre_display_html);
1404. }
1405. }
1163. * date: 2017-02-08 16:11:07
1164. * version: 3.17
1165. */
1166. public function dispatch() {
1167. if (Tools::version_compare(_PS_VERSION_,'1.6','>')) {
1168. $this->dispatch_16();
1169. } else {
1170. $this->dispatch_15();
1171. }
1172. }
1173. /*
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();