Ok, the foreach thing happens because I assumed an array would be passed in the code. It is an easy fix, and I will put an update in a couple of minutes... in the mean time you can fix it by going to roughly line 375 and replacing:
Code: Select all
foreach($directories_temp AS $f => $dir) {
if ($display_dir_tree == 'yes') {
$dir['filecount'] = $temp_filecount[$dir['relpath']];
} else {
$dir['filecount'] = $temp_filecount[$getpathtemp.$dir['relpath']];
}
if ($dir['filecount'] == '') {$dir['filecount'] = 0; }
$directories[$dir['name']] = $dir;
}
Code: Select all
if (is_array($directories_temp)) {
foreach($directories_temp AS $f => $dir) {
if ($display_dir_tree == 'yes') {
$dir['filecount'] = $temp_filecount[$dir['relpath']];
} else {
$dir['filecount'] = $temp_filecount[$getpathtemp.$dir['relpath']];
}
if ($dir['filecount'] == '') {$dir['filecount'] = 0; }
$directories[$dir['name']] = $dir;
}
}Now, on your first gallery the problem is that either subpage is not set in your configuration, or the plugin isn't reading the setting correctly... can you make sure it is subpage is not blank?
On gallery2 I have no idea what is happening... It looks like the template is not getting the full "$file" array... Have you edited the template at all?