Page 1 of 1

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

Posted: 26 Dec 2011, 22:11
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.

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

Posted: 26 Dec 2011, 23:04
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