PDF generation error

enrb

Member
I installed fabrik 4.4.1 and libraries 4.2 on joomla 5.2.1

In a module I enabled the pdf button in the details view to download a pdf with the uploaded data.
Unfortunately, when I click on the pdf button I get this error:

There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry.

Is there something I need to change?
 
It seems you have a Cassiopeia child template.
This is a knkown issue (and not supported if you want to use PDFs.)
 
Ok, for now I will not use child templates...
I set the Cassiopeia parent style, and now the pdf is generated and downloaded, but it does not open,

with chrome it always comes out:
Error
Unable to load PDF document

If I try to open it with Acrobat Reader this comes out:
Error opening document. The file is damaged and cannot be repaired.
 
Can you open the PDF with e.g. notepad++?
I assume it's starting with some error/warning message.
Do you have System Debug enabled? Or error reporting on?
 
With notepad++ the file opens, it starts with this warning:

<br />
<b>Warning</b>: Array to string conversion in <b>C:\xampp\htdocs\mywebtest\libraries\fabrik\fabrik\fabrik\Document\Renderer\Pdf\HeadRenderer.php</b> on line <b>239</b>
<br />

then there are some incomprehensible writings....

Enabling the pdf debugging in the Fabrik options, I get this warning:

Warning: Array to string conversion in C:\xampp\htdocs\mywebtest\libraries\fabrik\fabrik\fabrik\Document\Renderer\Pdf\HeadRenderer.php on line 239

Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\mywebtest\components\com_fabrik\models\form.php on line 4621

(P.S. I didn't specify before that I'm on php 8.1 with xampp...)
 
Actually by putting Display Errors Off in the php.ini file, everything works fine and the pdf is generated correctly.

Thank you very much.
 
I was trying to generate the pdf from the front-end.

Out of curiosity I also tried from the back-end and it works the same way.
 

Members online

No members online now.
Back
Top