Page 1 of 1

Phoca Site Plugin - Fatal Error

Posted: 06 May 2015, 18:20
by mscott
running another script, i'm getting this error from phoca site plugin


Fatal error: Call to undefined method JDocumentRaw::addCustomTag() in /***/***/public_html/plugins/system/phocasite/phocasite.php on line 36


please assist

Re: Phoca Site Plugin - Fatal Error

Posted: 07 May 2015, 19:20
by sevensages
I found the fix for this somewhere in these forums. I don't think it ever made it to an official release though.

Right around line 36, right after "$document = JFactory::getDocument();" add:

Code: Select all


		if (!method_exists($document, 'addCustomTag')) { return true; }	

So, it looks like this:

Code: Select all

		$document	= JFactory::getDocument();
		if (!method_exists($document, 'addCustomTag')) { return true; }	

		$prm		= array();
		$prm['head_custom_code'] 	= $this->params->get('head_custom_code', '');

I am not sure if it is the proper fix.
My problem was the plugin was messing up jmap, and if I turned off the phocasite plugin, things worked. Now, with this little patch, all seems to be working for me.

Re: Phoca Site Plugin - Fatal Error

Posted: 07 May 2015, 22:34
by Jan
Hi, which version of Joomla! and which version of the plugin you are running?

Jan

Re: Phoca Site Plugin - Fatal Error

Posted: 08 May 2015, 16:32
by sevensages
For me, I'm using latest of everything.
I even downloaded phocasite yesterday to make sure I had the very most current version, v3.0.0. And opening the zip file I see the phocasite.php file is from August 2013.

Re: Phoca Site Plugin - Fatal Error

Posted: 10 May 2015, 23:47
by Jan
Hi, where do you get the error exactly, in which output, seems like it will be not HTML output?

Jan