Error: Call to undefined method JDocumentRAW::addCustomTag()

Phoca Gallery plugins - plugins for Phoca Gallery extension
shkoder
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 26 Dec 2011, 22:03
Location: Russia

Error: Call to undefined method JDocumentRAW::addCustomTag()

Post by shkoder »

Hello,
I'm using the Phoca Gallery and Phoca Gallery Content Plugin on Joomla v1.5.25. Also installed K2 Component and K2 Tools module is used with the function LiveSearch.

In this case K2 sends AJAX GET request with a parameter '&format=raw'. As I understand it, Phoca Gallery Plugin does not have to handle the raw format, so it uses a method JDocumentHTML::addCustomTag(). That ends:
Fatal error: Call to undefined method JDocumentRAW::addCustomTag() in \plugins\content\phocagallery.php on line 1569.

I had to add code:

Code: Select all

if (JRequest::getCmd ('format')!='' && JRequest::getCmd('format')!='html') {
   return false;
}
at the beginning of the event handler onPrepareContent (I look this code in plugin jw_simpleImageGallery.php of JoomlaWorks)

[Edit]
Versions:
- Phoca Gallery Plugin v2.7.7
- Phoca Gallery v2.8.0
- Joomla 1.5.25
- PHP 5.3.8

Regards, Konstantin Shkodskih.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48416
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error: Call to undefined method JDocumentRAW::addCustomT

Post by Jan »

Hi, I am sorry, I don't have any experiences with K2 and its calling of raw document, so really cannot advice there anything :-( :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply