Page 1 of 1

Warning: Invalid argument supplied

PostPosted: Wed Nov 16, 2011 4:44 pm
by info@.....eu
I installed it but got this message on the top of my page:
Warning: Invalid argument supplied for foreach() in wwwroot\administrator\components\com_virtuemart\html\basket.php on line 1173

Can sombody help me?

Re: Warning: Invalid argument supplied

PostPosted: Fri Nov 18, 2011 9:31 pm
by admin
Hello,
the query before is "show table status where name='jos_vm_orders' " with appropriate prefix. It seems that this query is not permitted for your database user or there is something even more strange going on.

You can possibly fix this by adding the following line before the mention line number:

Code: Select all
if (empty($a)) $next_order_id = rand(990000, 999999);
else
foreach....


These lines are used to get next order id which will be sent to Google ecommerce tracking if enabled.

Best Regards,
Stan

Re: Warning: Invalid argument supplied

PostPosted: Fri Nov 18, 2011 9:32 pm
by admin
If you don't want to show this message and your site is live, you can safely disable notices at Joomla's global config, set Error reporting to None - which is recommended for a live site.
Best Regards,
Stan

Re: Warning: Invalid argument supplied

PostPosted: Tue Nov 22, 2011 10:16 am
by info@.....eu
Hi the first one did it! Thanks

Re: Warning: Invalid argument supplied

PostPosted: Tue Nov 29, 2011 9:01 pm
by admin
Hello,
this modification is now part of standard releases.

Stan