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();
116. $id_shop,
117. $ipa,
118. $force_routes,
119. $relative_protocol,
120. $add_anchor
121. );
122. $module = Tools::getValue('module');
123. if ($module == 'eo_amp') {
124. $url = $url . "/amp/";
125. }
126. return $url;
Argument [0] Argument [1] Argument [2] Argument [3] Argument [4] Argument [5] Argument [6] 0 Argument [7] Argument [8] Argument [9]
281. $this->context->link->getProductLink(
282. $this->product_displayed->id,
283. $this->product_displayed->link_rewrite,
284. $this->product_displayed->category,
285. $this->product_displayed->ean13
286. )
287. ).
288. '" title="' . htmlentities($this->product_displayed->name, ENT_NOQUOTES, 'UTF-8') . '">
289. <span itemprop="title">' . $this->product_displayed->name . '</span></a>';
290. $pipe = Configuration::get('PS_NAVIGATION_PIPE');
291. if (empty($pipe)) {
Argument [0] Argument [1] Argument [2] Argument [3]
77. if ($this->dbCacheContent === false)
78. $this->initContent();
79. else
80. self::initContent();
81. } else {
82. $this->initContent();
83. }
84. } else {
85. $this->errors[] = Tools::displayError('Access denied.');
86. }
87.
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();