Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 452 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 455 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 456 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 457 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 458 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 459 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 460 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 473 Notice: Undefined offset: 1 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 452 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 455 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 456 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 457 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 458 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 459 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 460 Notice: Undefined offset: 0 in C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php on line 473
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();
58. " class="item-link"<?php if ($_smarty_tpl->tpl_vars['hItem']->value['target']==1) {?> onclick="return !window.open(this.href);"<?php }?> title="<?php echo smartyTranslate(array('s'=>'Nos coups de coeur','mod'=>'blockcms'),$_smarty_tpl);?>
59. ">
60. <?php }?>
61. <?php } elseif ($_smarty_tpl->tpl_vars['hItem']->value['category_link']!=0&&$_smarty_tpl->tpl_vars['hItem']->value['category_name']!='Accueil') {?>
62. <?php if ($_smarty_tpl->tpl_vars['hItem']->value['product']!=0) {?>
63. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['hItem']->value['id_product'],$_smarty_tpl->tpl_vars['hItem']->value['pr_link_rewrite'],$_smarty_tpl->tpl_vars['hItem']->value['category_rewrite'],$_smarty_tpl->tpl_vars['hItem']->value['ean13']), ENT_QUOTES, 'UTF-8', true);?>
64. " class="item-link"<?php if ($_smarty_tpl->tpl_vars['hItem']->value['target']==1) {?> onclick="return !window.open(this.href);"<?php }?> title="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hItem']->value['name_product'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
65. ">
66. <?php } else { ?>
67. <a href="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hItem']->value['category_url'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
68. " class="item-link"<?php if ($_smarty_tpl->tpl_vars['hItem']->value['target']==1) {?> onclick="return !window.open(this.href);"<?php }?> title="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hItem']->value['category_name'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
Argument [0] Argument [1] Argument [2] Argument [3]
183. }
184. array_unshift($_template->_capture_stack, array());
185. //
186. // render compiled template
187. //
188. $_template->properties['unifunc']($_template);
189. // any unclosed {capture} tags ?
190. if (isset($_template->_capture_stack[0][0])) {
191. $_template->capture_error();
192. }
193. array_shift($_template->_capture_stack);
Argument [0]
312. $this->smarty->update_filepath($filepath, $this->template_resource, $this->cache_id, $this->compile_id);
313. }
314. }
315. return $tpl;
316. } else {
317. return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
318. }
319. }
320. }
Argument [0] Argument [1] Argument [2] Argument [3] Argument [4] Argument [5] 1 Argument [6]
2304.
2305. if ($cache_id !== null) {
2306. Tools::enableCache();
2307. }
2308.
2309. $result = $this->getCurrentSubTemplate($template, $cache_id, $compile_id)->fetch();
2310.
2311. if ($cache_id !== null) {
2312. Tools::restoreCacheSettings();
2313. }
2314.
295. $this->context->smarty->assign(array(
296. 'htmlitems' => $this->getItemsFromHook('home'),
297. 'hook' => 'home'
298. ));
299.
300. return $this->display(__FILE__, 'hook.tpl');
301. }
302.
303. public function hookDisplayLeftColumn()
304. {
305. $this->context->smarty->assign(array(
Argument [0] C:\home\site\wwwroot\override\modules\themeconfigurator\themeconfigurator.php Argument [1] hook.tpl
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] hookdisplayHome Argument [2]
35. public function initContent()
36. {
37. parent::initContent();
38. $this->addJS(_THEME_JS_DIR_.'index.js');
39.
40. $this->context->smarty->assign(array('HOOK_HOME' => Hook::exec('displayHome'),
41. 'HOOK_HOME_TAB' => Hook::exec('displayHomeTab'),
42. 'HOOK_HOME_TAB_CONTENT' => Hook::exec('displayHomeTabContent')
43. ));
44. $this->setTemplate(_PS_THEME_DIR_.'index.tpl');
45. }
Argument [0] displayHome
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))) {
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.
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26. ini_set('memory_limit', '-1');
27. require(dirname(__FILE__).'/config/config.inc.php');
28. $timestamp_debut = microtime(true);
29. Dispatcher::getInstance()->dispatch();
30. $timestamp_fin = microtime(true);
31. $difference_ms = $timestamp_fin - $timestamp_debut;
32. echo $difference_ms . ' secondes';die;