Page 1 of 1

mod_phocagallery_image.php conflict with RSS and Atom feeds

Posted: 09 Sep 2010, 21:44
by patfinegan
I received the following error when I included a Phoca Gallery image module in an article and clicked on the Feed button of my browser (Firefox and IE8):

Fatal error: Call to undefined method JDocumentFeed::addCustomTag() in /www/htdocs/w0072a84/joomla15/modules/mod_phocagallery_image/mod_phocagallery_image.php on line 51

This is the page that generated the error: http://deutschtreffen.de/joomla15/index ... 1&Itemid=9

The second article is the only one in the blog with phoca gallery elements. Strangely, the RSS feed works if you go to the article itself, http://deutschtreffen.de/joomla15/index ... cle&id=312, instead of the blog. I am baffled.

Thanks in advance.

Re: mod_phocagallery_image.php conflict with RSS and Atom fe

Posted: 09 Sep 2010, 23:55
by patfinegan
At the suggestion of Stergios Zgouletas at http://web-expert.gr, I added the second line to mod_phocagallery_image.php:

Code: Select all

$document = &JFactory::getDocument();
if($document->getType()!='html') return;
This solution worked fine. Stergios had a similar problem with his FaceBook J! Comments module. It was also being parsed at feed time, apparently a change in the way the feeds function used to work.

Re: mod_phocagallery_image.php conflict with RSS and Atom fe

Posted: 10 Sep 2010, 08:26
by Benno
Thanks for this info & well done! :twisted:
Kind regards,
Benno