PHP Notice: Undefined index: description in
Posted: Mon Apr 07, 2014 4:21 am
I did an upgrade from 1.5.5.1 to 1.5.6 but now I get errors in the log of, I know it seems theme related however I wound think the variable is actually correct? Can anyone spot what may be wrong here or even better how to resolve it?
014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/latest.tpl on line 12
2014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/latest.tpl on line 49
2014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/featured.tpl on line 12
2014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/featured.tpl on line 49
latest.tpl
line 12 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
line 49 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
features.tpl
line 12 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
line 49 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
cheers
r4nd0m
014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/latest.tpl on line 12
2014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/latest.tpl on line 49
2014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/featured.tpl on line 12
2014-04-06 13:13:37 - PHP Notice: Undefined index: description in /home/dom.co.uk/catalog/view/theme/otp790_orange/template/module/featured.tpl on line 49
latest.tpl
line 12 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
line 49 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
features.tpl
line 12 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
line 49 <?php echo "<p>".mb_substr(strip_tags(html_entity_decode($product['description'])), 0, 90)."...</p>"; ?>
cheers
r4nd0m