phoca cache and Joomla! 1.7 - Fatal error

Phoca PDF - creating PDF documents in Joomla! CMS
zioolek
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 14 Sep 2011, 23:56

phoca cache and Joomla! 1.7 - Fatal error

Post by zioolek »

Hi there.
I'm using Phoca plugin v2.0.1 on Joomla! v1.7 and I have some problem with cache in phoca pdf.
I turn on Joomla! cache plugin and set cache setting in phoca plugin to 'yes'.
After that i have this error:

Code: Select all

Fatal error: Call to undefined method JDocumentPdf::setHeadData() in ~/public_html/libraries/joomla/cache/cache.php on line 419
What's the problem? I need change/set something else?

Just to mention that if I don't use phoca pdf cache - I get rendered pdf's from site.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca cache and Joomla! 1.7 - Fatal error

Post by Jan »

Hi, try to run the latest Phoca PDF component and plugin, this should be solved.
If you find Phoca extensions useful, please support the project
amir00251
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 May 2011, 21:51

Re: phoca cache and Joomla! 1.7 - Fatal error

Post by amir00251 »

Hello,

I have installed latest versions of phoca pdf component and plugin, just downloaded today. When joomla cache is on, I get below error when I click on the pdf icone in the articles.

Fatal error: Call to undefined method JDocumentPdf::setHeadData() in /var/www/vhosts/.../libraries/joomla/cache/cache.php on line 446

when joomla cache is off, pdf generated with no problems.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca cache and Joomla! 1.7 - Fatal error

Post by Jan »

Hmm, tested with latest version without any problem, will do some more tests.

Jan
If you find Phoca extensions useful, please support the project
Sirko
Phoca Member
Phoca Member
Posts: 12
Joined: 11 Nov 2011, 10:46
Location: Germany

Re: phoca cache and Joomla! 1.7 - Fatal error

Post by Sirko »

Hi

I have the same problem with activated cache.

Fatal error: Call to undefined method JDocumentPdf::setHeadData() in ~/public_html/libraries/joomla/cache/cache.php on line 419

The versions of Phoca PDF and plugin are current.

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

Re: phoca cache and Joomla! 1.7 - Fatal error

Post by Jan »

Hmm, testing it and seems to be a bug in Joomla! :-(

1) if cache is enabled for Phoca PDF - then in such case Joomla! does not accept mime of PDF :-(

2) because of 1) the cache must be disabled - but disabling it in document seems to be ignored :-( (e.g. like by json file types) :-(

Will try to find some hack for this :-(

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca cache and Joomla! 1.7 - Fatal error

Post by Jan »

Should be fixed in 2.0.4.

Warning: don't use Inline Browser value for parameter PDF Destination in Phoca PDF Content plugin if Joomla! cache system plugin is enabled, see:
https://www.phoca.cz/documents/47-phoca- ... -and-usage
(at the bottom)

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