Strange error. PDF doesn't work even I made instructions!
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Dec 2015, 14:11
Strange error. PDF doesn't work even I made instructions!
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
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
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Dec 2015, 14:11
Re: Strange error. PDF doesn't work even I made instructions
Hey is anybody here? Please! I need some help with solve this problem.
My phoca PDF doesnt work correctly.
Best regards.
My phoca PDF doesnt work correctly.
Best regards.
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: Strange error. PDF doesn't work even I made instructions
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
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
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Dec 2015, 14:11
Re: Strange error. PDF doesn't work even I made instructions
Thank you Christine, it was so simple!
Now there is the last problem.
I can't instal any new fonts to phoca PDF...
Now there is the last problem.
I can't instal any new fonts to phoca PDF...
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Dec 2015, 14:11
Re: Strange error. PDF doesn't work even I made instructions
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
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
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: Strange error. PDF doesn't work even I made instructions
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
/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
Reason: link removed, was not klickable
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Dec 2015, 14:11
Re: Strange error. PDF doesn't work even I made instructions
Thanks again Christine!
is that possible to change dropp down icons to one icon DOWNLOAD PDF ? Like on the image?
Best regards, Marcin.
is that possible to change dropp down icons to one icon DOWNLOAD PDF ? Like on the image?
Best regards, Marcin.
Last edited by MarcinAdamek on 09 Dec 2015, 00:04, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Strange error. PDF doesn't work even I made instructions
Hi,
Istead of rendering the PDF in browser, it should be rendered and stored somehwere on server and then then redirected to download it
Jan
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 customizationis that possible to change dropp down icons to one icon DOWNLOAD PDF ? Like on the image?
Istead of rendering the PDF in browser, it should be rendered and stored somehwere on server and then then redirected to download it
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 03 Dec 2015, 14:11
Re: Strange error. PDF doesn't work even I made instructions
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.
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.
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: Strange error. PDF doesn't work even I made instructions
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:
inserted temporary:
using a div class: pdficon to have the possibility to format it (if wanted):
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
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>
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>
Code: Select all
.pdficon img {
background-color:red;
font-weight:bold;
color:#fff;
padding-top:5px;
padding-bottom:5px;
}
Kind regards, Christine