Conflict TCPDF vs phocapdfrender.php

Phoca PDF - creating PDF documents in Joomla! CMS
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Conflict TCPDF vs phocapdfrender.php

Post by dpur293 »

I have installed the latest version of the plugin (followed the instructions) on Joomla 3.6. I am able to get it to make the header and footer of the pdf but it is blank.

I saw the message about conflicts on the component site but the conflict is within the component. I checked the log files and see the following:

Warning: Cannot modify header information - headers already sent by (output started at /home2/khoopes/public_html/administrator/components/com_phocapdf/helpers/phocapdfrender.php:89) in /home2/khoopes/public_html/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 9076
TCPDF ERROR: Some data has already been output to browser, can't send PDF file

also see this ( know it's not totally relevant):

Strict Standards: Only variables should be assigned by reference in /home2/khoopes/public_html/administrator/components/com_phocapdf/helpers/phocapdfrender.php on line 89

Strict Standards: Only variables should be assigned by reference in /home2/khoopes/public_html/plugins/phocapdf/content/content.php on line 129

Is there something I am missing?

Also would love to just pay you guys to install it correctly, if that is an option.

Thanks,
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Conflict TCPDF vs phocapdfrender.php

Post by Jan »

Hi, try to install Phoca PDF component version 3.0.3 and plugin version 3.0.3.

You shouldn't get such errors there:
https://www.phoca.cz/news/903-phoca-pdf-3-0-3-released
Jan
If you find Phoca extensions useful, please support the project
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Re: Conflict TCPDF vs phocapdfrender.php

Post by dpur293 »

I updated the component & content plugin but the system plugin is still showing as 3.0.2

I still get a blank page with header & footer working OK.

Any ideas as to why?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Conflict TCPDF vs phocapdfrender.php

Post by Jan »

Hi, system plugin is only needed for displaying the icon, so it does not have any influence on rendering the PDF (you can see the latest version here:

https://www.phoca.cz/download/category/8 ... tem-plugin - it is version 3.0.2)

Does it mean, the PDF is rendered on your site? If yes, try to add only some simple text to the article to know, it is not somehow caused by content :idea:

Jan
If you find Phoca extensions useful, please support the project
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Re: Conflict TCPDF vs phocapdfrender.php

Post by dpur293 »

I just tried it. The header and footer are beautiful, just the content doesn't load

I used all of the standard Joomla templates and my custom one (tried 5)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Conflict TCPDF vs phocapdfrender.php

Post by Jan »

And if you paste only simple text to the article?

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