Problem fix for RSS module

JoeHornTW

Joined: 2009-10-04
Posts: 2
Posted: Fri, 2010-01-08 21:40


Gallery version (not just "2"): 2.3.1
PHP version (e.g. 5.1.6): 5.2.12
Webserver (e.g. Apache 1.3.33): 2.2.14
Database (e.g. MySql 5.0.32): 5.1.41
Activated toolkits (e.g. NetPbm, GD): LinkItemToolkit, Thumbnail, Getid3, SquareThumb, ArchiveUpload, Dcraw, Ffmpeg, ImageMagick, jpegtran, NetPBM, Gd, Exif
Operating system (e.g. Linux): FreeBSD

I found lots PHP Notices messages in Apache error logs:

Quote:
PHP Notice: Undefined index: sfPhotosRecursiveLimit in [Gallery_PATH]/modules/rss/SimpleRender.inc on line 78

I traced the code, and add some for fixing the problem.
The patch file attached and shown below:

Quote:
--- modules/rss/SimpleRender.inc.old 2010-01-09 05:23:32.000000000 +0800
+++ modules/rss/SimpleRender.inc 2010-01-09 05:38:08.000000000 +0800
@@ -67,6 +67,10 @@

$params['feedDate'] = $params['sfDate'];

+ if ( !isset($params['sfPhotosRecursiveLimit']) ) {
+ $params['sfPhotosRecursiveLimit'] = $params['sfPhotosRecurseLimit'];
+ }
+
/* apply defaults */
foreach (array('copyright' => 'defaultCopyright',
'version' => 'defaultVersion',

AttachmentSize
diff.txt467 bytes
 
alicorna
alicorna's picture

Joined: 2002-10-07
Posts: 18
Posted: Mon, 2010-01-11 02:53

THANK you!!! I've been mucking around for days trying to get the RSS feed to work, it's been driving me crazy. Thank you very much. :)