Hi,
I am using the JA_Good template and I have noticed that I am getting this error in the Theme tab inside of the Ja Good - Game template:
Warning: Invalid argument supplied for foreach() in /home2/devkcdadmin/ffu.dev.kingcrabdesigns.com/plugins/system/t3/includes/depend/t3folderlist.php on line 61
I have downloaded the file and inside of line 61 I see this:
foreach ($tmps as $tmp) {
The entire section is this:
protected function getOptions()
{
$table = JTable::getInstance('Style', 'TemplatesTable', array());
$table->load((int) JFactory::getApplication()->input->getInt('id'));
// update path to this template
$path = (string) $this->element['directory'];
// process path in template
$options = array();
$vals = array();
// get all path in template
$paths = T3Path::getAllPath ($path);
foreach ($paths as $path) {
$this->directory = $this->element['directory'] = JPath::clean($path);
$tmps = parent::getOptions();
foreach ($tmps as $tmp) {
if (in_array($tmp->value, $vals)) continue;
$vals[] = $tmp->value;
$options[] = $tmp;
}
}
return $options;
}
What is it looking for exactly? And I have noticed that when I make a change to the theme, it erases the entire CSS for Game. This may be due to that error I am seeing in the template but I could very well be wrong.
Thank you.