Page 1 of 1

Unable to install Phoca PDF

Posted: 24 Feb 2013, 08:12
by PaulTH
I have had several attempts at installing Phoca PDF 2.0.7 but I keep getting these errors.
Component Install: DB function reports no errors.
Error installing component

Phoca PDF is listed in the Components Menu but if I click on it I get.
404 - An error has occurred.
Component not found

Return to Control Panel.
I am using Joomla! 2.5.9

Can anyone assist with this please?

Re: Unable to install Phoca PDF

Posted: 24 Feb 2013, 21:49
by Jan
Hmmmm, really no idea, this is a message from Joomla! which installs the component, but what exactly can be wrong there, really no idea? Try to reinstall it (but before reinstalling try to remove all the parts to not influence new installation - https://www.phoca.cz/phocagallery/16-joo ... m-manually )

Jan

Re: Unable to install Phoca PDF

Posted: 25 Feb 2013, 09:16
by PaulTH
Thanks Jan, that worked. I have now loaded Phoca PDF but it isn't showing the PDF icon in my site. I am using a template I created using Artisteer version 4.1 and I have sent in a support question to Artisteer about this as this latest version of Artisteer is supposed to be able to load Phoca PDF icons.

I just tried the site using Joomla default Templates Atomic and Beez5 and the PDF icon appears in both of these but when you click on it a pop up appears and loads the header Logo correctly and adds a Phoca PDF text footer but there is no content loaded in the centre.

When I installed Phoca PDF I used the Full Install method.

Re: Unable to install Phoca PDF

Posted: 27 Feb 2013, 05:01
by PaulTH
I got a reply back from Artisteer Support. They told me to reinstall in Custom mode, which I did. Then do this:
Please install Phoca in a custom mode and then use this code in the template files for articles, categories and so on:

if (!$article->print && $article->showPdfIcon)
$params['metadata-header-icons'][] = $article->pdfIcon();
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once JPATH_ADMINISTRATOR .
'/components/com_phocapdf/helpers/phocapdf.php';
$icon = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $this->item->params);
$icon = str_replace('<li class="print-icon">', '', $icon);
$icon = str_replace('</li>', '', $icon);
$params['metadata-header-icons'][] = $icon;
}

These are the files I added the above code to:
{your_theme_name}/html/com_content/article/default.php
{your_theme_name}/html/com_content/category/blog_item.php
{your_theme_name}/html/com_content/featured/default_item

This worked and I now see the PDF Icons on each page.

The only thing now is when you click on the icon the Phoca header appears and the phoca footer appears but there is no content just a blank page. I noticed when I click a print Icon that the content appears for a few seconds then disappears and it is just blank again.

Have you any suggests on this?