This is my first install of K2 and K2 Store. I have K2 installed and I got the Blog working on the front end which is what I wanted.
Now I want to add the store. I unzipped the current component and used the install manager as usual. It says that it was installed properly... all except this one error.
Warning: Invalid argument supplied for foreach() in /home/trishah/public_html/libraries/joomla/database/database/mysql.php on line 678
This relates to the last function on this page which I have shown below. Is this something I need to fix? If so, how?
UPDATE: I have tried to create my first product and there is no Buy Now button. I have gone over all the instructions several times and cannot find the problem. Could the above error have caused this?
function getTableFields( $tables, $typeonly = true )
{
settype($tables, 'array'); //force to array
$result = array();
foreach ($tables as $tblval)
{
$this->setQuery( 'SHOW FIELDS FROM ' . $tblval );
$fields = $this->loadObjectList();
if($typeonly)
{
[b]Line 678:[/b] foreach ($fields as $field) {
$result[$tblval][$field->Field] = preg_replace("/[(0-9)]/",'', $field->Type );
}
}
else
{
foreach ($fields as $field) {
$result[$tblval][$field->Field] = $field;
}
}
}
return $result;
}
}