VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: djliquid on September 15, 2011, 05:43:32 AM

Title: Warning: Invalid argument supplied for foreach() in /homepages/44/
Post by: djliquid on September 15, 2011, 05:43:32 AM
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!
Title: Re: Warning: Invalid argument supplied for foreach() in /homepages/44/
Post by: djliquid on September 15, 2011, 05:58:06 AM
this stupid this disappeared all by itself after I tinkered with the menus.

false alarm
Title: Re: Warning: Invalid argument supplied for foreach() in /homepages/44/
Post by: chij25 on September 15, 2011, 06:42:05 AM
I have the same problem, help solve
Title: Re: Warning: Invalid argument supplied for foreach() in /homepages/44/
Post by: AngelusWebDesign on September 22, 2011, 01:00:44 AM
I'm getting the same error.

Title: Re: Warning: Invalid argument supplied for foreach() in /homepages/44/
Post by: Milbo on September 22, 2011, 11:19:04 AM
We added a warning for it, is fixed in svn