Jump to content

module not working on some urls: Undefined index: id_product


Recommended Posts

Hi,

 

Someone any clue where id_product gets declared??

 

I'm getting issues on urls that have been removed, with the hreflang module on...

When i put it off, there arent any issues..

 

for example:

https://www.zelfbouw-domotica.be/nl/enkelvoudige-lichtbediening-met-led.html

(debug is on)

with debug off i get error 500..

 

Error log say:

 

ndefined index: id_product in /home/senne/web/zelfbouw-domotica.be/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 57

 

i think it has to do with following rule in href module:

{if $page_name == 'product'} 
{foreach $languages as $lang}       
<link rel="alternate" hreflang="{$lang.language_code}" href="{$link->getProductLink($smarty.get.id_product, null, null, null, $lang.id_lang, null, 0, false)}" />	   
{/foreach}
{/if}

i think Id-product is not declared and thus it makes an error..

 

Any clues??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...