Page 1 of 1

phoca cache and Joomla! 1.7 - Fatal error

Posted: 15 Sep 2011, 00:21
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.

Re: phoca cache and Joomla! 1.7 - Fatal error

Posted: 21 Sep 2011, 01:03
by Jan
Hi, try to run the latest Phoca PDF component and plugin, this should be solved.

Re: phoca cache and Joomla! 1.7 - Fatal error

Posted: 01 Nov 2011, 00:22
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.

Re: phoca cache and Joomla! 1.7 - Fatal error

Posted: 02 Nov 2011, 15:07
by Jan
Hmm, tested with latest version without any problem, will do some more tests.

Jan

Re: phoca cache and Joomla! 1.7 - Fatal error

Posted: 29 Nov 2011, 19:47
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

Re: phoca cache and Joomla! 1.7 - Fatal error

Posted: 07 Dec 2011, 18:47
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

Re: phoca cache and Joomla! 1.7 - Fatal error

Posted: 07 Dec 2011, 20:51
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