mod_phocagallery_image.php conflict with RSS and Atom feeds

Phoca Gallery modules - modules for Phoca Gallery extension
patfinegan
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 07 Sep 2010, 18:27

mod_phocagallery_image.php conflict with RSS and Atom feeds

Post 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.
patfinegan
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 07 Sep 2010, 18:27

Re: mod_phocagallery_image.php conflict with RSS and Atom fe

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: mod_phocagallery_image.php conflict with RSS and Atom fe

Post by Benno »

Thanks for this info & well done! :twisted:
Kind regards,
Benno
Post Reply