I get errors in my OpenCart site?

Avatar
  • Answered
Notice: Undefined index: name in /home/simpl116/public_html/opencart/upload/catalog/view/theme/default/template/product/category.tpl on line 34

&

Notice: Undefined index: name in /home/simpl116/public_html/opencart/upload/catalog/view/theme/default/template/product/category.tpl on line 25
Avatar
Tim S.
Hi sbaldwin, Thanks for posting your question. I'm more than happy to assist you. I've checked over the code on your page and it is the same as my default installation. Do you have an mods that may have affected this? Was the error always present, did it recently appear? I removed this line of code in your file and no errors were present so we know that the issue is with the 'name' value itself (I replaced the code after testing):

<?php echo $categories[$i]['name']; ?>

Since it seems that the issue, isn't coding and may be either a setting configuration issue, I'd suggest posting a question in the OpenCart Forums. If you need further assistance please feel free to contact us. Thanks! Tim S