Embedded Gallery with Keyword Albums throws errors that expose internal server paths
|Posted: Sun, 2010-01-24 11:56|
I frequently get errors thrown on the screen that expose internal server paths on my Embedded Gallery. I have noticed that this seems to be a problem only on the embedded gallery and not the standalone gallery.
For example, using the Keyword albums and trying to generate an album for a nonexistent keyword gives me an error as follows:
warning: Invalid argument supplied for foreach() in /home/myname/webfolder/gallery2/modules/core/classes/GalleryTheme.class on line 1446.
This error is not thrown on screen when I use the standalone gallery though!
This seems to be a common problem as I have found the same problem on multiple other sites:
Turning off URL Rewrite does not solve the problem.