Can't search for "pdf" post in the forum...

lcollong

FabriKant d'applications web
Hi,

I'm getting a blank page while clicking on the pdf button on a list view. No errors generated (firebug). I'm sure this has already been addressed in the forum but due to the "more than 3 letters" search limitation, I can't search the forum for the word "pdf"... may be it would be possible to set up some "white list" of useful small words to search for ?

BTW, any hint about the reason of pdf construction not being triggered ?
 
You can use google for searching
site:fabrikar.com/forums pdf

Is the blank page showing immediatly or after e.g. 30 sec (php timeout)?
Did you set error reporting to max?

Dompdf has several limitations with divs or tables spanning more than one page.
The dompdf lib included in Fabrik3.0 Github is old, you may take the one from Fabrik3.1 or from dompdf Github.
 
Hi Troester,

Thanks for the Google tip. I should have think about this solution... :(

The white pdf doc is showing after some seconds. Sounds normal time. No evidence of any php timeout. I'm doing tests on very simple, few columns, few lines list. I'll check with error reporting to max and will see if I can change something including another lib.

Thanks for your help
 
It seems I got some errors there ....

[Thu Nov 14 08:01:40 2013] [error] [client 66.249.xx.xx] PHP Warning: Illegal string offset 'hex' in /yyyyyyyyyyyyyy/libraries/dompdf/include/style.cls.php on line 1544
[Thu Nov 14 08:01:41 2013] [error] [client 66.249.xx.xx] PHP Warning: Division by zero in /yyyyyyyyyyyyy/libraries/dompdf/lib/class.pdf.php on line 3752
[Thu Nov 14 08:01:41 2013] [error] [client 66.249.xx.xx] PHP Fatal error: Call to undefined function imagecreatefrompng() in /yyyyyyyyyyy/libraries/dompdf/lib/class.pdf.php on line 4303
[Thu Nov 14 08:01:59 2013] [error] [client 66.249.xx.xx] PHP Notice: Undefined index: form in /yyyyyyyyyyyyyyy/libraries/joomla/application/component/view.php on line 413
[Thu Nov 14 08:01:59 2013] [error] [client 66.249.xx.xx] PHP Warning: Creating default object from empty value in /yyyyyyyyyyyyyyy/components/com_fabrik/views/form/view.base.php on line 58
[Thu Nov 14 08:01:59 2013] [error] [client 66.249.xx.xx] PHP Fatal error: Call to undefined method stdClass::getForm() in /yyyyyyyyyyyyyyyy/components/com_fabrik/views/form/view.base.php on line 59
 
Hi Rob,

Indeed, you were right. But now, I have this in the error.log:
[Mon Nov 18 17:22:46 2013] [error] [client xx.xx.xx.xx] PHP Warning: Illegal string offset 'hex' in /var/www/test/libraries/dompdf/include/style.cls.php on line 1544, referer: http://test.test.info/index.php?opt...id=15&calculations=0&resetfilters=0&Itemid=27
[Mon Nov 18 17:22:47 2013] [error] [client xx.xx.xx.xx] PHP Warning: Division by zero in /var/www/test/libraries/dompdf/lib/class.pdf.php on line 3752, referer: http://test.test.info/index.php?opt...id=15&calculations=0&resetfilters=0&Itemid=27

producing the following error on the front :
Firefox ne peut trouver le fichier ? l'adresse http://test.test.info/index.php?opt...format=pdf&listid=15&resetfilters=0&Itemid=27.
 
HI Jerome
what's the actual site url?
For the notices, it must be something in the markup that dompdf isn't liking.
 
Hi Rob,

I'm able to reproduce the problem on the "basulm_clone" test site in "mySites". You have to connect on the front using the second login (publisher).
1- If you go to "Gestion" >> "Type d'acc?s" it displays a small table on which the pdf generate function IS running.
2- if you go to "Gestion" >> "Type de plate-forme (cod?)" it displays a bigger table on which pdf IS generated but with an error on the last column (double '/' near the image name).
3- if you go to "Cr?ation/tableau de bord" >> "Tableau de bord", the pdf is triggered but shows a blank page.

Here is an extract of the corresponding error.log :
Code:
[Wed Nov 20 10:56:37 2013] [error] [client xx.yy.zz.tt] PHP Warning:  tempnam(): SAFE MODE Restriction in effect.  The script whose uid is 33 is not allowed to access /tmp owned by uid 0 in /media/www-dev/public/basulm3_clone/libraries/dompdf/include/image_cache.cls.php on line 77, referer: http://xx.yy.zz.tt/public/basulm3_clone/index.php?option=com_fabrik&view=list&listid=57&Itemid=138
[Wed Nov 20 10:56:37 2013] [error] [client xx.yy.zz.tt] File does not exist: /media/www-dev/public/basulm3_clone/media/com_fabrik/images/icones_googlemap/arodrome
[Wed Nov 20 10:56:37 2013] [error] [client xx.yy.zz.tt] PHP Warning:  tempnam(): SAFE MODE Restriction in effect.  The script whose uid is 33 is not allowed to access /tmp owned by uid 0 in /media/www-dev/public/basulm3_clone/libraries/dompdf/include/image_cache.cls.php on line 77, referer: http://xx.yy.zz.tt/public/basulm3_clone/index.php?option=com_fabrik&view=list&listid=57&Itemid=138
[Wed Nov 20 10:56:37 2013] [error] [client xx.yy.zz.tt] File does not exist: /media/www-dev/public/basulm3_clone/media/com_fabrik/images/icones_googlemap/Arodrome
[Wed Nov 20 10:56:37 2013] [error] [client xx.yy.zz.tt] PHP Warning:  Division by zero in /media/www-dev/public/basulm3_clone/libraries/dompdf/lib/class.pdf.php on line 3752, referer: http://xx.yy.zz.tt/public/basulm3_clone/index.php?option=com_fabrik&view=list&listid=57&Itemid=138
[Wed Nov 20 10:56:38 2013] [error] [client xx.yy.zz.tt] PHP Warning:  tempnam(): SAFE MODE Restriction in effect.  The script whose uid is 33 is not allowed to access /tmp owned by uid 0 in /media/www-dev/public/basulm3_clone/libraries/dompdf/include/image_cache.cls.php on line 77, referer: http://xx.yy.zz.tt/public/basulm3_clone/index.php?option=com_fabrik&view=list&listid=57&Itemid=138
[Wed Nov 20 10:56:38 2013] [error] [client xx.yy.zz.tt] PHP Warning:  file_put_contents(): Filename cannot be empty in /media/www-dev/public/basulm3_clone/libraries/dompdf/include/image_cache.cls.php on line 104, referer: http://xx.yy.zz.tt/public/basulm3_clone/index.php?option=com_fabrik&view=list&listid=57&Itemid=138
 
I've got some way with this - we need to define the dom pdf tmp folder when the server is running in safe mode.
That produces a pdf for 'Type de plate-forme (cod?)' with some of the images showing (not sure what the difference is between those that show and those that dont are though.

Tableau de bord however still gives a blank pdf, any chance you can look again in your logs to see if there are any errors related to this page?

-Rob
 
Hi Rob,

Thanks, here in an extract of the error.log which seems to correspond to the period you drive some tests. I've replaced myIP and what I think is yours. I've also trace of hacks tries.....
 

Attachments

  • error.zip
    1.1 KB · Views: 290
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top