Page 1 of 1

Phoca Site Plugin - „XML parsing error: No root element found“ instead of RSS channel

Posted: 25 Aug 2021, 11:46
by Radenant
Hi there,

i am still using old Joomla! 2.5 (new web in progress, but it will take some time...) and i started Google AdSense with help of Phoca Site Plugin. It worked great for AdSense, but i found one bad thing.

If plug-in is enabled then website RSS channel via Ninja RSS Syndicator (specific, need to be used) got „XML Parsing error: No root element found“ http://www.profiboxing.cz/index.php?opt ... format=raw. If Phoca plug-in is disabled = RSS OK. I went to Syndicator website and forum and found something about another XML parsing error http://ninjaforge.com/component/ninjabo ... 920#p18920, but its not the same. I sent some ask to authors of Syndicator too. I have tried it without AdSense code, just empty plug-in enabled, and error was there too.

Please H13, may i ask you for some tip for sorting this problem? Sure, i know situation on website isnt ideal, but i am working on it. Both, AdSense/Nynja RSS are very needed yet.

Joomla!: 2.5.28
PHP: 5.3.29


Thanks a lot for your time and any info. Btw. great work about Joomla!

Best regards, Radek

ps. případně můžeme česky

Re: Phoca Site Plugin - „XML parsing error: No root element found“ instead of RSS channel

Posted: 31 Aug 2021, 23:46
by Jan
Ahoj,

na Joomle 2.5 si to bohužel budeš asi muset modifikovat sám

Přidat podmínku, aby se plugin nevykonával např. v XML:

Code: Select all

$format = JRequest::getWord('format');
		if ($format=='feed') {
			return true;
		}
nebo

Code: Select all

$format = JRequest::getWord('format');
		if ($format=='raw') {
			return true;
		}