Jump to content

[SOLVED] Module homeslider hook to top - error


Recommended Posts

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

post-735339-0-54975500-1386707267_thumb.png

 

Do you know how to remove this error?

Link to comment
Share on other sites

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 by PaloJanuska (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...