Page 1 of 2
Strange error. PDF doesn't work even I made instructions!
Posted: 03 Dec 2015, 21:40
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
Re: Strange error. PDF doesn't work even I made instructions
Posted: 07 Dec 2015, 14:42
by MarcinAdamek
Hey is anybody here? Please! I need some help with solve this problem.
My phoca PDF doesnt work correctly.
Best regards.
Re: Strange error. PDF doesn't work even I made instructions
Posted: 07 Dec 2015, 16:12
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
Re: Strange error. PDF doesn't work even I made instructions
Posted: 07 Dec 2015, 16:46
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...
Re: Strange error. PDF doesn't work even I made instructions
Posted: 08 Dec 2015, 04:30
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
Re: Strange error. PDF doesn't work even I made instructions
Posted: 08 Dec 2015, 13:50
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
Re: Strange error. PDF doesn't work even I made instructions
Posted: 08 Dec 2015, 19:05
by MarcinAdamek
Thanks again Christine!
is that possible to
change dropp down icons to one icon DOWNLOAD PDF ? Like on the image?
Best regards, Marcin.
Re: Strange error. PDF doesn't work even I made instructions
Posted: 08 Dec 2015, 21:17
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
Jan
Re: Strange error. PDF doesn't work even I made instructions
Posted: 08 Dec 2015, 22:21
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.
Best regards, Marcin.
Re: Strange error. PDF doesn't work even I made instructions
Posted: 09 Dec 2015, 18:31
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
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.
Kind regards, Christine