VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: fbc on October 18, 2012, 04:45:43 AM

Title: Warning: Invalid argument supplied for foreach()
Post by: fbc on October 18, 2012, 04:45:43 AM
This is a migrated site: Well, not really. Its a fresh install however I CSVI'd  my products and categories into the fresh install.
Everything seemed to work fine until I upgrade to the latest Virtuemart. (2.0.12b) The when I logged in I received these errors.

Warning: Invalid argument supplied for foreach() in /home/www/xxxxx/libraries/joomla/database/database/mysql.php on line 383

Warning: Invalid argument supplied for foreach() in /home/www/xxxxx/libraries/joomla/database/table.php on line 406

Warning: Invalid argument supplied for foreach() in /home/www/xxxxx/libraries/joomla/database/database/mysql.php on line 383

Warning: Invalid argument supplied for foreach() in /home/www/xxxxx/libraries/joomla/database/table.php on line 406

Warning: Invalid argument supplied for foreach() in /home/www/xxxxx/libraries/joomla/database/database/mysql.php on line 383

Warning: Invalid argument supplied for foreach() in /home/www/xxxxx/libraries/joomla/database/table.php on line 406
Title: Re: Warning: Invalid argument supplied for foreach()
Post by: bytelord on October 18, 2012, 10:06:15 AM
Hello,

Whats your joomla version you installed with vm2.0.12b? It is joomla 2.5.7? PHP version? If it's PHP 5.3.x then you should disable error messages notification not to shown (E_STRICT), are turned on by default. You could go to your Joomla Global Configuration->Server->Server Settings->Error Reporting

You could try to change that messages to "simple" or "none".

Regards
Title: Re: Warning: Invalid argument supplied for foreach()
Post by: fbc on October 18, 2012, 16:53:32 PM
Yes, I have your test environment as my production.
Title: Re: Warning: Invalid argument supplied for foreach()
Post by: bytelord on October 18, 2012, 17:12:07 PM
Hello,

These are warning, did you try to disable e_strict? Does it appear now?
Title: Re: Warning: Invalid argument supplied for foreach()
Post by: fbc on October 18, 2012, 17:44:56 PM
Quote from: bytelord on October 18, 2012, 17:12:07 PM
Hello,

These are warning, did you try to disable e_strict? Does it appear now?
No they don't appear for the moment, however I have not tried logging in which is how I first noticed them.
Title: Re: Warning: Invalid argument supplied for foreach()
Post by: bytelord on October 18, 2012, 17:56:20 PM
Check also vm debugging if it's on or off.