Strange error. PDF doesn't work even I made instructions!

Phoca PDF - creating PDF documents in Joomla! CMS
MarcinAdamek
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Dec 2015, 14:11

Strange error. PDF doesn't work even I made instructions!

Post by MarcinAdamek »

Hello,

I installed all phoca pdf yesterday:
com_phocapdf_v3.0.2
plg_phocapdf_content_v3.0.2
plg_system_phocapdf_v3.0.2

Joomla 3.4.4
PHP 5.5.28
template: Urban

I made instructions about customizing joomla https://www.phoca.cz/documents/47-phoca- ... joomla-3-3
in file: /autoinstalator/totuserwis/templates/urbanlife/html/layouts/joomla/content/icons.php

But after click icon pdf the pop-up window shows strange error instead pdf:

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

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


And a lot of HTML code which I dont understand!

Please help with this problem.

This is the site: http://totu-serwer.home.pl/autoinstalat ... tutorial-1
MarcinAdamek
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Dec 2015, 14:11

Re: Strange error. PDF doesn't work even I made instructions

Post by MarcinAdamek »

Hey is anybody here? Please! I need some help with solve this problem.

My phoca PDF doesnt work correctly.

Best regards.
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Strange error. PDF doesn't work even I made instructions

Post by christine »

Hi Marcin,

check this please: https://www.phoca.cz/documents/50-phoca/ ... tic-method

also: there was an important high security fix (22nd october) to J 3.4.5:
https://www.joomla.org/announcements/re ... eased.html

Kind regards, Christine
MarcinAdamek
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Dec 2015, 14:11

Re: Strange error. PDF doesn't work even I made instructions

Post by MarcinAdamek »

Thank you Christine, it was so simple! :)

Now there is the last problem.

I can't instal any new fonts to phoca PDF...
MarcinAdamek
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Dec 2015, 14:11

Re: Strange error. PDF doesn't work even I made instructions

Post by MarcinAdamek »

Do somebody know how to install fonts correctly?

I tried but there is still an error:

JFolder::pliki: Path is not a folder. Path: /autoinstalator/totuserwis/tmp/install_56663e77c7a13

JFolder::folder: Path is not a folder. Path: /autoinstalator/totuserwis/tmp/install_56663e77c7a13

JFolder::pliki: Path is not a folder. Path: /autoinstalator/totuserwis/tmp/install_56663e77c7a13

JInstaler::Installation: File not found installation XML
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Strange error. PDF doesn't work even I made instructions

Post by christine »

Hi Marcin,

/tmp/install_56663e77c7a13 > delete files there (FTP) except: .html file

this is an old URL, but shows you what I mean in your language :-) ... edit: link not possible (removed).
i zamieniamy te linie na następującą postać:
var $log_path = './logs';
var $tmp_path = '.tmp';

also: Do you have correct permissions on the folders, correct file ownership?

fonts: https://www.phoca.cz/documents/49-phoca- ... -component

Kind regards, Christine
Last edited by christine on 08 Dec 2015, 13:57, edited 2 times in total.
Reason: link removed, was not klickable
MarcinAdamek
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Dec 2015, 14:11

Re: Strange error. PDF doesn't work even I made instructions

Post by MarcinAdamek »

Thanks again Christine! :D

is that possible to change dropp down icons to one icon DOWNLOAD PDF ? Like on the image?

Best regards, Marcin.

Image
Last edited by MarcinAdamek on 09 Dec 2015, 00:04, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strange error. PDF doesn't work even I made instructions

Post by Jan »

Hi,
is that possible to change dropp down icons to one icon DOWNLOAD PDF ? Like on the image?
Not with Phoca PDF - Phoca PDF is a tool which renders the PDF document - it renders it dynamically. So for this you need to make customization :-(

Istead of rendering the PDF in browser, it should be rendered and stored somehwere on server and then then redirected to download it :idea:

Jan
If you find Phoca extensions useful, please support the project
MarcinAdamek
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 03 Dec 2015, 14:11

Re: Strange error. PDF doesn't work even I made instructions

Post by MarcinAdamek »

Thank you Jan!

I am grateful for your answer, but I had something else in mind.

I mean if there is a way to throw away the mail icon and a drop-down menu and leave olny icon PDF on the top of article.

After pressing the icon would show no drop-down menu with a choice -> only once render pdf

That's because people may not associate right away that you need to select pdf from the dropdown menu. :idea:

Best regards, Marcin. :)
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Strange error. PDF doesn't work even I made instructions

Post by christine »

Hi Marcin,

about "to throw away the mail icon" I don't know - it's implemented as a toggled function?
In addition: Did you already update to J 3.4.5? > important security fix.

Just an idea - when trying, make backup before :wink:

After this:

Code: Select all

<h2 itemprop="name">
	Cień rzucony przez sześcian na pionową płaszczyznę</h2>
inserted temporary:

Code: Select all

<br /><div class="pdficon"><a href="/autoinstalator/totuserwis/index.php/tutorial-1?tmpl=component&format=pdf" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" title="PDF" rel="nofollow"><img src="/demo/images/M_images/pdf_button.png" alt="PDF"></a>
			</div>
using a div class: pdficon to have the possibility to format it (if wanted):

Code: Select all

.pdficon img {
background-color:red; 
font-weight:bold;
color:#fff;
padding-top:5px;
padding-bottom:5px;
}
the result, see screenshot. Of course, the image is from PDF Demo. You can change it, then there would no need e.g. to put background-color.

Image

Kind regards, Christine
Post Reply