PDF Content plugin causes blank page without error

Phoca PDF - creating PDF documents in Joomla! CMS
d.rieger
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 06 Feb 2012, 15:29

PDF Content plugin causes blank page without error

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF Content plugin causes blank page without error

Post by Jan »

Hi, try to disable displaying of plugin code in content - in PDF - see Phoca PDF - Phoca PDF Content Plugin parameters.

Jan
If you find Phoca extensions useful, please support the project
iplanells
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 10 Apr 2012, 14:38

Re: PDF Content plugin causes blank page without error

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF Content plugin causes blank page without error

Post 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
If you find Phoca extensions useful, please support the project
Roxanne
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 19 Apr 2012, 15:36

Re: PDF Content plugin causes blank page without error

Post 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
Post Reply