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();
581. $id_object = $_GET['id_'.$type];
582. }
583. }
584.
585. if ($type && $id_object) {
586. $url = $this->{'get'.$type.'Link'}($id_object, null);
587. } else {
588. if (isset(Context::getContext()->controller->php_self)) {
589. $name = Context::getContext()->controller->php_self;
590. } else {
591. $name = Dispatcher::getInstance()->getController();
Argument [0] k Argument [1]
464. 'display_tax_label' => (bool)$display_tax_label,
465. 'vat_management' => (int)Configuration::get('VATNUMBER_MANAGEMENT'),
466. 'opc' => (bool)Configuration::get('PS_ORDER_PROCESS_TYPE'),
467. 'PS_CATALOG_MODE' => (bool)Configuration::get('PS_CATALOG_MODE') || (Group::isFeatureActive() && !(bool)Group::getCurrent()->show_prices),
468. 'b2b_enable' => (bool)Configuration::get('PS_B2B_ENABLE'),
469. 'request' => $link->getPaginationLink(false, false, false, true),
470. 'PS_STOCK_MANAGEMENT' => Configuration::get('PS_STOCK_MANAGEMENT'),
471. 'quick_view' => (bool)Configuration::get('PS_QUICK_VIEW'),
472. 'shop_phone' => Configuration::get('PS_SHOP_PHONE'),
473. 'compared_products' => is_array($compared_products) ? $compared_products : array(),
474. 'comparator_max_item' => (int)Configuration::get('PS_COMPARATOR_MAX_ITEM'),
Argument [0] product Argument [1] k Argument [2] Argument [3] 1
37. global $smarty;
38. require_once _PS_MODULE_DIR_ . 'belvg_staticblocks/classes/BelvgStaticBlocks.php';
39. if(! self::$initialized){
40. smartyRegisterFunction($smarty, 'function', 'getBelvgBlockContent', array('BelvgStaticBlocks', 'getBlockContent'));
41. }
42. parent::init();
43. }
44. /*
45. * module: g_gifimageproduct
46. * date: 2022-11-26 14:51:04
47. * version: 1.0.0
77. * Initialize product controller
78. * @see FrontController::init()
79. */
80. public function init()
81. {
82. parent::init();
83.
84. if ($id_product = (int)Tools::getValue('id_product')) {
85. $this->product = new Product($id_product, true, $this->context->language->id, $this->context->shop->id);
86. }
87.
165. /**
166. * Starts the controller process (this method should not be overridden!)
167. */
168. public function run()
169. {
170. $this->init();
171. if ($this->checkAccess()) {
172. // setMedia MUST be called before postProcess
173. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
174. $this->setMedia();
175. }
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();