pdf "Notice: Undefined index..." message

Amuleta

Member
Joomla 3.7, Fabrik 3.6

When generating pdf, I get multiple messages referring to Notice: Undefined index: "*" in /.../.../libraries/joomla/document/pdf/renderer/head.php on line "*"

The issue is described in this thread on Github https://github.com/Fabrik/fabrik/issues/1803#issuecomment-298317984

"PDFs (domPDF from GitHub because it's not in the download area) showing a lot of notices in
\libraries\joomla\document\pdf\renderer\head.php
undefined index abc in line 118,119,123,155,159,163" by Trob
 
That's been fixed, we're currently testing the new code in a test branch before merging it into the master on github.

-- hugh
 
It is.
You must do a complete GitHub update, it's not only a new lib version, it's a complete new setup.
upload_2017-6-2_16-34-25.png
 
Hi Troester.

Thanks I found it, however pdf "works" when Fabrik debugging is on but when off, I get these messages:

Adobe Acrobat Reader could not open '....pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

Chrome: Failed to load PDF document

and
Preview: The file could not be opened. It may be damaged or use a file format that Preview doesn?t recognize.
 
With PDF debugging on it's no PDF, only the PDF "layout" in the browser (the HTML which will be sent to domPDF).

I can't replicate, PDF with latest GitHub is working on my sites (J!3.7.2, php7, fresh installations and J!3.6.5 php5.6)

But http://fabrikar.com/forums/index.php?threads/can-frabik-create-pdf-reports.46485/ is reporting the same issue.
In this thread
http://fabrikar.com/forums/index.php?threads/create-pdf-not-working.39142/
the generated "PDF" was no PDF but did contain the HTML code.
The solution was to switch PDF debug on and then off again, but I assume you've done this already.

Can you open your corrupted PDF with an editor (e.g. notepad++)?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top