Invalid argument supplied for foreach() in Album.php line 2706 while trying to subscribe to rss feed

shakey

Joined: 2006-08-07
Posts: 3
Posted: Thu, 2007-09-27 14:38

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: gallery 1.5.2-pl2
Apache version: 1.3.37
PHP version (don't just say PHP 4, please): 4.4.7
Operating system: FreeBSD 4.10
Web browser/version (if applicable): Firefox 2.x

I am trying to subscribe to the rss feed of an album. The album has no pictures in it. when I click on the rss feed button for this album i get this fatal error message. I know i'm using an older version and was wondering if any knew for certain that this problem might be solved with an upgrade?

Fatal error message:
Warning: Invalid argument supplied for foreach() in /usr/local/gallery_1_5_2-pl2/classes/Album.php on line 2706

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/gallery_1_5_2-pl2/classes/Album.php:2706) in /usr/local/gallery_1_5_2-pl2/rss.php on line 269
http://mydomain.gallery.net/gallery no photos in 1 album en-US Thu, 27 Sep 2007 14:30:09 +0000 Gallery 1.5.2-pl2, http://gallery.menalto.com/ http://blogs.law.harvard.edu/tech/rss 40 http://mydomain.gallery.net/gallery/album01 6d478055bda89dc9453a3b77d32de435 Wed, 26 Sep 2007 21:24:21 +0000 http://mydomain.gallery.net/gallery/view_comments.php?set_albumName=album01

Thanks,
-Jeff