Posted by BKWill on December 18, 2008 at 5:59pm
| Project: | Fast Gallery |
| Version: | 6.x-3.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello,
I get the following error after I rescan my db and hit save:
warning: Invalid argument supplied for foreach() in /home/brookly2/public_html/dev/sites/all/modules/fast_gallery/fast_gallery.class.php on line 724.
beneath this I get a warning EXIF data not supported on my server. When I go to the page where the albums should be nothing is there.
Can you please shed some light on this issue.
Thanks,
Will
I'm using the latest version of Drupal.
Comments
#1
I think for the 3.3 version we should give the user a configuration option to turn of exif usage.
Line 724:
$dirs = glob($path.'*', GLOB_MARK | GLOB_ONLYDIR);
foreach ($dirs as $dir) {
$files[] = $this->exploreDir($dir, TRUE);
}
It seems as if your provider doesn't support the glob function (http://de.php.net/glob):
Hinweis: This function isn't available on some systems (e.g. old Sun OS).
Hinweis: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.
I would ask your provider about this issue
#2
Got the same problem … i asked my provider about the glob function but there's no problem with the proberties so it thought me that the problem is locatable in de code …
#3
Is there the possibility to delete these codelines because in some ways there not necessary:"// Recurse through subdirectories if necessary" …
#4
oky. In the latest 3.3 beta version there is the possibility to switch off the exif support.
#5
ButchC. I provided a little fix for this error. Check out the latest dev version.
#6
If you can edit your php.ini file, then the way that I was able to fix this was by opening it up and making sure that php_exif was enabled and that php_mbstring was listed before php_exif so that it was loaded first.
#7
I just had another thought (I don't know what fix you made in the dev branch). Perhaps you should just insert into the fast_gallery_exif table empty strings for each exif value if exif is not supported. This would eliminate a lot of people's problems. You could then output an error saying that EXIF values were not exported. Just a thought.
#8
the latest version has actually a flag to deactivate exif function... it's though not testet yet.
#9
I take it you updated all of the queries too then? That was the big issue is that there are joins to the fast_gallery_exif table which is empty, so there are no results returned when you go to check out the gallery.
#10
#11
going to close this issue, as this version is not supported anymore and the issue is old