Bug: Phoca site Plugin

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
810
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Oct 2012, 12:52

Bug: Phoca site Plugin

Post by 810 »

Fatal Error: Call to undefined method JDocumentRaw::addCustomTag() in plugins/system/phocasite/phocasite.php on line 38


regards
810
Kunena Team
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug: Phoca site Plugin

Post by Jan »

Hi, which plugin version and Joomla! version you are running?
If you find Phoca extensions useful, please support the project
810
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Oct 2012, 12:52

Re: Bug: Phoca site Plugin

Post by 810 »

Joomla 2.5.7

Phoca Site Plugin 1.0.1 11/01/2012
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug: Phoca site Plugin

Post by Jan »

Hi, try to change:

Code: Select all

if ($format=='feed') {
			return true;
		}
to:

Code: Select all

if ($format=='feed' || $format=='raw') {
			return true;
		}
in the plugin code, this should help.

Jan
If you find Phoca extensions useful, please support the project
810
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Oct 2012, 12:52

Re: Bug: Phoca site Plugin

Post by 810 »

yes, thats fixed the issue.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug: Phoca site Plugin

Post by Jan »

Ok, I will add this to next version of this plugin.

Thank you for the info.
Jan
If you find Phoca extensions useful, please support the project
freeferrell
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Jan 2013, 14:27

Re: Bug: Phoca site Plugin

Post by freeferrell »

Phocasite plugin will get the fatal error for other JDocument calls - I was getting this the same fatal on a JDocumentOpenSearch.

Jan, I would include this in newest release of phocasite as it will fix all future problems :)

Right after you call the $document instance simply add this:

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

This solves any future conflicts. ;)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug: Phoca site Plugin

Post by Jan »

Hi, thank you. Jan
If you find Phoca extensions useful, please support the project
careyb
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 04 Mar 2014, 00:14

Re: Bug: Phoca site Plugin

Post by careyb »

Hi - as far as I can see this was never fixed in a new version of Phocasite. Is there any chance of a newer version that fixes this bug or maybe some more details instructions on how to fix it by hand?
thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug: Phoca site Plugin

Post by Jan »

Hi, do you get any error message on your site caused by the Site plugin?

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