0

Getting this error in my log, here is the line it's referring to:

<div class="<?php echo $divclass; ?>" id="product-item-<?php echo $product_id; ?>">
    <?php echo $products_name[$product_id]; ?>
    <img src="view/image/delete.png" />
    <input name="bossmegamenu[product_ids][]" type="hidden" value="<?php echo $product_id; ?>" />
</div>

This is a opencart module.

Any ideas how to track this down?

Einenlum
  • 600
  • 4
  • 15
  • 1
    $products_name[$product_id]; this is probably empty, try var_dump($products_name) to see what you have inside – ThomasP1988 Jul 16 '14 at 19:55
  • Hi and thanks for your reply; I tried the var_dump but no results. It's throwing different number in there, sometimes none: Undefined index: Undefined index: 4Undefined index: 6Undefined index: – will2create Jul 16 '14 at 20:16
  • is your array empty ? – ThomasP1988 Jul 16 '14 at 20:17
  • In phpMyAdmin, the 'type' is innoDB with -9 rows. All the other types are MYISAM..could the problem be on database end? – will2create Jul 16 '14 at 22:00
  • try to see where you are making your array, it must be a problem there – ThomasP1988 Jul 16 '14 at 22:02
  • for simple select, innodb or myisam don't change anything – ThomasP1988 Jul 16 '14 at 22:02
  • Okay so this is what I was able to come up with: The unidentified index is referring to the "item" column. ss here (http://i60.tinypic.com/27yqwsn.jpg) Depending on the selection options, a series of numbers is created like: 4, 6, (sometimes it remains blank) but as soon as I hit save, I get the following errors: Undefined index: 4 Undefined index: 6 Undefined index: (blank) This appears to be the file controlling the array and parameter info (http://ge.tt/5mnFdYo1/v/0?c) Thanks Thomas for the help thus far, I just can't seem to figure this out 4 hours later – will2create Jul 17 '14 at 00:15
  • This is the file that post the information to the database (http://ge.tt/9qGVhYo1/v/0?c) – will2create Jul 17 '14 at 00:19
  • Questions regarding specific code related to OpenCart should be posted on http://area51.stackexchange.com/proposals/77558/opencart – Pacerier Oct 06 '14 at 06:32

0 Answers0