Warning: Invalid argument supplied

Warning: Invalid argument supplied

Postby info@.....eu » Wed Nov 16, 2011 4:44 pm

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?
Attachments
Schermafbeelding 2011-11-16 om 15.44.01.png
Schermafbeelding 2011-11-16 om 15.44.01.png (72.43 KiB) Viewed 8903 times
info@.....eu
 
Posts: 2
Joined: Wed Nov 16, 2011 4:42 pm

Re: Warning: Invalid argument supplied

Postby admin » Fri Nov 18, 2011 9:31 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Warning: Invalid argument supplied

Postby admin » Fri Nov 18, 2011 9:32 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Warning: Invalid argument supplied

Postby info@.....eu » Tue Nov 22, 2011 10:16 am

Hi the first one did it! Thanks
info@.....eu
 
Posts: 2
Joined: Wed Nov 16, 2011 4:42 pm

Re: Warning: Invalid argument supplied

Postby admin » Tue Nov 29, 2011 9:01 pm

Hello,
this modification is now part of standard releases.

Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 1.1.x