VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: mosdata on November 08, 2014, 13:19:29 PM

Title: Invalid argument supplied for foreach error in shop settings
Post by: mosdata on November 08, 2014, 13:19:29 PM
Hello, I have joomla 3.3.6 and I update to version 2.9.9.4 of virtuemart and get an error when I enter the shop settings.

Warning: Invalid argument supplied for foreach() in /home/vanaty/public_html/store/administrator/components/com_virtuemart/models/config.php on line 130

Any idea how to fix it?
regards
Title: Re: Invalid argument supplied for foreach error in shop settings
Post by: Milbo on November 11, 2014, 12:07:11 PM
Yes, just install vm2.9.9.4 AIO.


$dir = VMPATH_ROOT.DS.'libraries'.DS.'tcpdf'.DS.'fonts';
$result = array();
if(function_exists('glob')){
$specfiles = glob($dir.DS."*_specs.xml");
foreach ($specfiles as $file) {


You can also check if you have fonts in your libraries/tcpdf/fonts folder.
Title: Re: Invalid argument supplied for foreach error in shop settings
Post by: mosdata on November 14, 2014, 14:00:04 PM
Thank you, very much!!!