Warning: Invalid argument supplied for foreach() in /homepages/44/

Started by djliquid, September 15, 2011, 05:43:32 AM

Previous topic - Next topic

djliquid

QuoteWarning: Invalid argument supplied for foreach() in /homepages/44/d90092464/htdocs/remixculture.com/components/com_virtuemart/router.php on line 739
[/b]

doh!

Lines 738-746:
// Search  Virtuemart itemID in joomla menu
[b] foreach ($items as $item) {[/b]
$view = $item->query['view'] ;
if ($view=='virtuemart') $this->menu['virtuemart'][] = $item->id;

if ( isset($item->query['virtuemart_'.$view.'_id']) )
$this->menu['virtuemart_'.$view.'_id'][ $item->query['virtuemart_'.$view.'_id'] ] = $item->id;
else $this->menu['virtuemart_'.$view]= $item->id ;
}



This is the 4th site I've attempted VM 2 and this is the first I've tried the migration from J1.5.23 and VM 1.19 and the first time I've seen this error.

As usual, any insight is greatly appreciated. Example page: http://remixculture.com/index.php/component/virtuemart/Bass-is-bliss


Thanks!

djliquid

this stupid this disappeared all by itself after I tinkered with the menus.

false alarm



Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/