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();
562. $context = Context::getContext();
563. $productUrl = "";
564.
565. if (method_exists($context->controller, "getProduct")) {
566. $pid = $context->controller->getProduct()->id;
567. $productUrl = $context->link->getProductLink($pid);
568. }
569.
570. $this->context->smarty->assign(array(
571. 'phonenumber' => $phoneNumber,
572. 'productUrl' => $productUrl,
Argument [0]
582. }
583. }
584.
585. // Immediately return the result if we do not log performances
586. if (!Module::$_log_modules_perfs) {
587. return $module->{$method}($params);
588. }
589.
590. // Store time and memory before and after hook call and save the result in the database
591. $time_start = microtime(true);
592. $memory_start = memory_get_usage(true);
Argument [0]
537. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
538. }
539.
540. // Call hook method
541. if ($hook_callable) {
542. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
543. } elseif ($hook_retro_callable) {
544. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
545. }
546.
547. // 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();