Error when clicking the pdf-button

Phoca PDF - creating PDF documents in Joomla! CMS
yrrah
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 15 Aug 2018, 13:15

Error when clicking the pdf-button

Post by yrrah »

When I click on the pdf-button in an article on my website (for instance in https://www.handelingen.com/index.php/l ... oordegraaf) I get en errormessage: 0 - Call to undefined method Joomla\CMS\Document\RawDocument::setHeader()
It seems this error suddenly occurs: for a few weeks all went right.
What can be wrong?
Thanks in advance.

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

Re: Error when clicking the pdf-button

Post by Jan »

Hi, which version of Phoca PDF do you run?

Jan
If you find Phoca extensions useful, please support the project
yrrah
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 15 Aug 2018, 13:15

Re: Error when clicking the pdf-button

Post by yrrah »

Version 3.0.5
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when clicking the pdf-button

Post by Jan »

Please enable debug mode and let me know the screenshot of error page (it will include more detailed information about the error)

Jan
If you find Phoca extensions useful, please support the project
yrrah
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 15 Aug 2018, 13:15

Re: Error when clicking the pdf-button

Post by yrrah »

Thanks, Jan.
A screenprint you can find here: https://www.handelingen.com/index.php/2 ... debug-mode
(click on it to magnify)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when clicking the pdf-button

Post by Jan »

Hi, this seems like some obsolete Joomla! version, which version of Joomla! do you use?

Jan
If you find Phoca extensions useful, please support the project
yrrah
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 15 Aug 2018, 13:15

Re: Error when clicking the pdf-button

Post by yrrah »

Joomla! versie Joomla! 3.8.12 Stable [ Amani ] 28-August-2018 14:00 GMT
Joomla! Platform versie Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when clicking the pdf-button

Post by Jan »

Hmm, the problem is, the error is comming from raw document but it should be handled pdf document (not raw).

Were all files copied to your site when installing Phoca PDF? See if this file exists:
components\com_content\views\article\view.pdf.php
libraries\src\Document\Renderer\Pdf\ComponentRenderer.php

Jan
If you find Phoca extensions useful, please support the project
yrrah
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 15 Aug 2018, 13:15

Re: Error when clicking the pdf-button

Post by yrrah »

components\com_content\views\article\view.pdf.php
-> does NOT exist in: /domains/handelingen.com/public_html/administrator/components/com_content/views/article
-> does exist in: /domains/handelingen.com/public_html/components/com_content/views/article

libraries\src\Document\Renderer\Pdf\ComponentRenderer.php
-> in: /domains/handelingen.com/public_html/libraries/src/Document/Renderer there's no directory Pdf
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when clicking the pdf-button

Post by Jan »

Hi, so this seems to be a problem, try to reinstall the Phoca PDF component and see the post installation message, if all the files were successfully installed.

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