Hello

Rss Feeds and XML data does not work, especially "g2_view=slideshow.SlideshowMediaRss", so slideshows do not work. I get a HTTP 500 response code from the server, when trying to view RSS fees (and slideshows). When I try to access the data directly in gallery2 things work fine.

This happens with my hosting company's webserver, not mine at home. Could you serve this kind of data directly? As a workaround, i added the following line to galler_page() in gallery.module to make slideshows work:

return preg_replace('/index.php\?q\=gallery\&amp\;g2\_view\=slideshow.SlideshowMediaRss\&amp\;g2_itemId\=([0-9]+)/i', 'gallery2/main.php?g2_view=slideshow.SlideshowMediaRss&g2_itemId=${1}', $result['bodyHtml']);

instead of

return $result['bodyHtml'];

Regards,

Frank

Comments

kjholla’s picture

I modified the code within the gallery.module file as recommended and got the PicLens slideshow working.

Only additional thing I had to do was put the fix in two places:

1. For the body - this works fine when the Gallery Sidebar has not been moved into the Gallery Navigation block

return preg_replace('/index.php\?q\=gallery\&amp\;g2\_view\=slideshow.SlideshowMediaRss\&amp\;g2_itemId\=([0-9]+)/i', 'gallery2/main.php?g2_view=slideshow.SlideshowMediaRss&g2_itemId=${1}', $result['bodyHtml']);

2. For the Sidebar - When you go into Gallery Settings and choose to move the Gallery Sidebar into the Gallery Navigation block, the above fix will not suffice. In this case you need to add the following:

$GLOBALS['gallery_sidebar'] = preg_replace('/index.php\?q\=gallery\&amp\;g2\_view\=slideshow.SlideshowMediaRss\&amp\;g2_itemId\=([0-9]+)/i', 'gallery2/main.php?g2_view=slideshow.SlideshowMediaRss&g2_itemId=${1}', $result['sidebarBlocksHtml']);

instead of

$GLOBALS['gallery_sidebar'] = $result['sidebarBlocksHtml'];

in the function gallery_page()

A permanent fix for this problem would be really good.

Regards,
KH