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();
163. {
164. $idPr = (int)Tools::getValue('id_product');
165. $lang = (int)$params['cookie']->id_lang;
166. $pr = Db::getInstance()->getRow('SELECT * FROM `'._DB_PREFIX_.'product_lang` WHERE id_product = '.$idPr.' AND id_lang = '.$lang.'');
167. $name = $pr['name'];
168. $plnk = Context::getContext()->link->getProductLink($idPr);
169.
170. $shareMessage = str_replace("{PRODUCT}","*".$name."*","{$shareMessage}");
171. $shareMessage = str_replace("{LINK}","".$plnk."","{$shareMessage}");
172. }
173.
Argument [0] 0
184. public function hookDisplayFooter($params)
185. {
186. $no = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'whatsapp WHERE id_whatsapp = 1');
187. $hook = $no['hook'];
188. if ($hook == 'footer')
189. return $this->whatsapp($params);
190. }
191. public function hookLeftColumn($params)
192. {
193. $no = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'whatsapp WHERE id_whatsapp = 1');
194. $hook = $no['hook'];
Argument [0]
586. }
587. }
588.
589. // Immediately return the result if we do not log performances
590. if (!Module::$_log_modules_perfs) {
591. return $module->{$method}($params);
592. }
593.
594. // Store time and memory before and after hook call and save the result in the database
595. $time_start = microtime(true);
596. $memory_start = memory_get_usage(true);
Argument [0]
541. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
542. }
543.
544. // Call hook method
545. if ($hook_callable) {
546. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
547. } elseif ($hook_retro_callable) {
548. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
549. }
550.
551. // Live edit
Argument [0] Argument [1] hookdisplayFooter Argument [2]
1017. * Initializes page footer variables
1018. */
1019. public function initFooter()
1020. {
1021. $this->context->smarty->assign(array(
1022. 'HOOK_FOOTER' => Hook::exec('displayFooter'),
1023. 'conditions' => Configuration::get('PS_CONDITIONS'),
1024. 'id_cgv' => Configuration::get('PS_CONDITIONS_CMS_ID'),
1025. 'PS_SHOP_NAME' => Configuration::get('PS_SHOP_NAME'),
1026. 'PS_ALLOW_MOBILE_DEVICE' => isset($_SERVER['HTTP_USER_AGENT']) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE') && @filemtime(_PS_THEME_MOBILE_DIR_)
1027. ));
Argument [0] displayFooter
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
195. $this->initFooter();
196. }
197.
198. // Default behavior for ajax process is to use $_POST[action] or $_GET[action]
199. // then using displayAjax[action]
200. if ($this->ajax) {
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();