Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a report with pdf export function, everything works fine on my laptop. But when I tried on another laptop, the pdf can only be exported with title, no table content, is there any configuration problem?
Comment | File | Size | Author |
---|---|---|---|
#14 | 2478703-blank-pdf.patch | 616 bytes | metzlerd |
Comments
Comment #1
metzlerd CreditAttribution: metzlerd commentedThis is most likely due to input format settings for Forena on the second site. Make sure to not use input formats that filter or alter html so that the table markup passses through to PDF unchanged. That is the only setting that I can think of that would supress some but not all of the content.
Of course the other possibility is that you have not granted access on the second laptop. Please compare both input format configuration and forena access permissions bewteen the two configurations.
Comment #2
metzlerd CreditAttribution: metzlerd commentedWas this solved?
Comment #3
Dra-SiAn CreditAttribution: Dra-SiAn commentedI'm having a similar problem. Everything in my forena instalation seems that is working fine, but every single report, even the examples that came with module are being exported in pdf with only the title.
I need help on solving this. TKS and regards!!!!
Comment #4
metzlerd CreditAttribution: metzlerd commentedDid you perform the steps that I suggested in the comment? Verifying your input format? Also please indicate which PDF generation method you are using?
Comment #5
Dra-SiAn CreditAttribution: Dra-SiAn commentedI'm using MPDF library but regarding the input format I confess that I didn't understand how configure it yet (I just got back to Drupal world) Anyway thanks a lot for your response!
Comment #6
metzlerd CreditAttribution: metzlerd commentedThere is a setting that specifies which input format should be used for Forena. It is found under the Configuration->Content Authoring -> Forena.
Also, mPDF has a a temp folder in its code tree that need write access. It isn't well documented in mPDF, but be sure the apache/web user has write access to that folder.
Comment #7
Dra-SiAn CreditAttribution: Dra-SiAn commentedI created a new text format and called it "forena", then applied this new format to text format field in my report page config and I gave 777 to tmp dir inside mpdf (it was 755). Nothing worked... Still in need of a help.
I'm wondering what I'm missing...
Thank you again!
Comment #8
metzlerd CreditAttribution: metzlerd commentedTemporarily, rather than assigning a text format please disable the text formatting system (input filtters) in forena, just to make sure that is isn't the problem.
Also check your logs to see if there are any error messages that you are seeing. I'll try and set aside some time this week to double check to make sure something hasn't changed/broken in mPDF.
Comment #9
Dra-SiAn CreditAttribution: Dra-SiAn commentedThank you again for your response.
I disabled every filter format from Drupal and tried again, but didn't work... so I tried to create a new text format exclusive for forena and didn't work either.
It's possible to be a problem from my server? Regarding version, I'm using mpdf vs. 6.0.
Tks in advance.
Comment #10
metzlerd CreditAttribution: metzlerd commentedDid you check your logs to see if there are any php error messages there?
Comment #11
Dra-SiAn CreditAttribution: Dra-SiAn commentedExample in mpdf folder (mysite/sites/all/libraries/mpdf/examples/example01_basic.php) is showing perfectly all elements and no citation on error.log
But before saving a report as graph I have this alert:
Mensagem de erro
Notice: Undefined index: style em FrxSVGGraph::graphOptions() (linha 407 de /home/drasaa/public_html/syslabore/sites/all/modules/forena/renderers/FrxSVGGraph.inc).
Notice: Undefined index: style em FrxSVGGraph::graphOptions() (linha 407 de /home/drasaa/public_html/syslabore/sites/all/modules/forena/renderers/FrxSVGGraph.inc).
Anyway after saving the graph shows Ok.
Comment #12
Dra-SiAn CreditAttribution: Dra-SiAn commented...But I still have blank pages with only the title for pdf.
Comment #13
metzlerd CreditAttribution: metzlerd commentedHmmm.... k. Will try to reproduce this weekend.
Comment #14
metzlerd CreditAttribution: metzlerd commentedVerified that this was a bug only affecting mPDF generation methods introduced in some refactoring work. The following patch should correct the problem.
Comment #16
metzlerd CreditAttribution: metzlerd commentedComment #17
metzlerd CreditAttribution: metzlerd commentedPlease test the patch and or download a 7.x-4.x-dev snapshot built after the commit and test for me. Report back results so that I can close the case as appropriate.
Comment #19
Dra-SiAn CreditAttribution: Dra-SiAn commentedI've just installed the complete dev version and everything is working fine!!!
Thank you very much!!!
Comment #20
metzlerd CreditAttribution: metzlerd as a volunteer commented