Page 1 of 1

PDF Content plugin causes blank page without error

Posted: 06 Feb 2012, 15:41
by d.rieger
Hi,
I encountered an enormous issue trying to get PhocaGallery (2.8.1) and the PhocaPdf content plugin (1.0.6) working together in Joomla 1.5, because the activated pdf plugin breaks the gallery. It showed a blank page whithout throwing any error or even notice - just no output at all. As soon as I deactivated the pdf content plugin, my menu link directing to a PhocaGallery category listing worked again.
I think that I have found the "broken" part in the code, it's in 'plugins/system/phocapdfcontent.php' somewhere around line 100:

Code: Select all

JResponse::setBody($bodySite);
I changed it to:

Code: Select all

if(! empty($bodySite)) {
	JResponse::setBody($bodySite);
}
I do not understand Joomla at all, but it solved the problem.

Re: PDF Content plugin causes blank page without error

Posted: 13 Feb 2012, 11:35
by Jan
Hi, try to disable displaying of plugin code in content - in PDF - see Phoca PDF - Phoca PDF Content Plugin parameters.

Jan

Re: PDF Content plugin causes blank page without error

Posted: 10 Apr 2012, 15:44
by iplanells
Hi,

I just installed the component and plugin. The first problem I had was the same as you. A white page after enabling the plugin.
I changed the code as you suggested and now the site works again, but the PDF icon is the old one, not the Phoca one.
What am I missing?? Why doesn't it work?

(Joomla 1.5.25)

Isabel

Re: PDF Content plugin causes blank page without error

Posted: 18 Apr 2012, 20:50
by Jan
Hi, if you enable php error reporting, do you get some error message?
https://www.phoca.cz/documents/16-joomla ... rs-on-site

Jan

Re: PDF Content plugin causes blank page without error

Posted: 19 Apr 2012, 15:54
by Roxanne
Hi,
i have the same problems of iplanells:
"I just installed the component and plugin. The first problem I had was the same as you. A white page after enabling the plugin.
I changed the code as you suggested and now the site works again, but the PDF icon is the old one, not the Phoca one.
......."

I have enabled php error reporting but i didn't see errors to video neither in the logs.

I have installed component 1.0.9 and pdf plugin 1.0.6 for joomla 1.5.26 with php 5.2.6.
Have i forgotten something? There are intermediate steps?

Rosella