Embedded Gallery with Keyword Albums throws errors that expose internal server paths

kjholla

Joined: 2009-03-31
Posts: 44
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:

http://www.handsinserviceocc.com/index.php?q=gallery&g2_view=keyalbum.Ke...
http://www.jimjeffery.com/index.php?q=gallery&g2_view=keyalbum.KeywordAl...
http://www.tutek.com/sacc-sandiego.org/?q=gallery&g2_view=keyalbum.Keywo...
http://h0bbel.p0ggel.org/gallery2/tag/Gran

Turning off URL Rewrite does not solve the problem.

Regards,
KH

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-01-24 17:03

Please don't cross post, there is already discussion happening here (anther thread you started):
http://gallery.menalto.com/node/93805

Locking this thread
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here