Megamenu Error when Magento Logging Turned ON

I’m trying to debug a Internal Server Error 500, so have enabled the Magento Error Log.

I’ve noticed a huge number of:


ERR (3): Notice: Undefined property: stdClass::$col0  in \lib\megamenu\mega.class.php on line 92

Please can you help?

I’m using the latest quickstart (03-15-2013)

1 answer

Profile photo of Sherlock 0.00 $tone March 29, 2013

Hi carline,

You can open that file at the line number 92 you would see this code

PHP Code:

  if ($item->megaparam->{"col$i"}) $item->col[$i]=$item->megaparam->{"col$i"}; 

Try to change it to

PHP Code:

if (isset($item->megaparam->{"col$i"}) && $item->megaparam->{"col$i"}) $item->col[$i]=$item->megaparam->{"col$i"}; 

I hope this helps !


Please login or Register to Submit Answer

Written By