PaloJanuska Posted December 10, 2013 Share Posted December 10, 2013 Hi, i made the modify module homeslider (file homeslider.php) following the procedure: http://mypresta.eu/en/art/tips-and-tricks/how-to-move-image-slider-module-from-home-to-top-in-prestashop.html When you turn display error on i see this error: Notice: Undefined index: HOOK_BANNER in C:\Program Files\wamp\www\1561a\cache\smarty\compile\9a\46\8b\9a468bfb9fddaa6fd1f12058ce4bfc86786ef49b.file.header.tpl.php on line 219 Notice: Trying to get property of non-object in C:\Program Files\wamp\www\1561a\cache\smarty\compile\9a\46\8b\9a468bfb9fddaa6fd1f12058ce4bfc86786ef49b.file.header.tpl.php on line 219 Do you know how to remove this error? Link to comment Share on other sites More sharing options...
shailendra Posted December 11, 2013 Share Posted December 11, 2013 If you are using default hooks, No such default hook with name Banner is available in prestashop. Instead of that i would recommend you to use default hooks available in preastashop. Hope this will help you. Link to comment Share on other sites More sharing options...
NemoPS Posted December 11, 2013 Share Posted December 11, 2013 I guess we need vekia And 2: did you add that hook yourself? or was it on your theme? Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 problem isn't related to this module because ... module don't use HOOK_BANNER are you 100% sure that you haven't got other non-default modules installed? Link to comment Share on other sites More sharing options...
PaloJanuska Posted December 12, 2013 Author Share Posted December 12, 2013 (edited) I have installed only the default modules prestashop 1.5.6.1. error refers to a file in directory cache\smarty\compile: 9a468bfb9fddaa6fd1f12058ce4bfc86786ef49b.file.header.tpl.php line no. 219: <?php echo $_smarty_tpl->tpl_vars['HOOK_BANNER']->value;?> <?php if ($_smarty_tpl->tpl_vars['page_name']->value=='index'){?> <!-- Banner --> <div class="divider"><!-- bug IE --></div> <div id="header_baner"> <?php echo $_smarty_tpl->tpl_vars['HOOK_BANNER']->value;?> </div><!-- /Banner --> <?php }?> In the file in path themes\default\header.tpl is in the source code: {if $page_name == index} <!-- Banner --> <div class="divider"><!-- bug IE --></div> <div id="header_baner"> {$HOOK_BANNER} </div><!-- /Banner --> {/if} this is wrong here ? Do not know why the error shows ? problem isn't related to this module because ... module don't use HOOK_BANNER are you 100% sure that you haven't got other non-default modules installed? Edited December 12, 2013 by PaloJanuska (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 12, 2013 Share Posted December 12, 2013 it's not default theme. hook_banner in default 1.5.6.1 theme doesn't exist. problem is with theme. Link to comment Share on other sites More sharing options...
PaloJanuska Posted December 18, 2013 Author Share Posted December 18, 2013 Hi Vekia, thanks for replymy mistake solved Link to comment Share on other sites More sharing options...
vekia Posted December 18, 2013 Share Posted December 18, 2013 no worries, may i know where the problem was? i marked this topic as [solved] Link to comment Share on other sites More sharing options...
Recommended Posts