Support

Home Forums Event Espresso Premium PDF Download not working

PDF Download not working

Posted: October 26, 2018 at 10:38 am


tsca

October 26, 2018 at 10:38 am

In the Invoice, the PDF Download button doesn’t work. The error log shows the error below. Event Espresso has just been updated, although it didn’t work before either. Thanks

PHP Fatal error: Uncaught Error: Call to a member function get_cellmap() on null in /nas/content/live/thesca/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/table_cell_frame_reflower.cls.php:31\nStack trace:\n#0 /nas/content/live/thesca/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/frame_decorator.cls.php(556): Table_Cell_Frame_Reflower->reflow(NULL)\n#1 /nas/content/live/thesca/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/table_row_frame_reflower.cls.php(41): Frame_Decorator->reflow()\n#2 /nas/content/live/thesca/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/frame_decorator.cls.php(556): Table_Row_Frame_Reflower->reflow(Object(Block_Frame_Decorator))\n#3 /nas/content/live/thesca/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/block_frame_reflower.cls.php(722): Frame_Decorator->reflow(Object(Block_Frame_Decorator))\n#4 /nas/content/live/thesca/wp-content/plugins/event in /nas/content/live/thesca/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/table_cell_frame_reflower.cls.php on line 31, referer: https://thesocialchangeagency.org/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=1-7289dd6013189ffdb3ca692bc421febe&GRP_ID=7&id=322


Josh

  • Support Staff

October 26, 2018 at 10:51 am

Hi,

The same error has been reported elsewhere:
https://github.com/dompdf/dompdf/issues/1416

Usually it’s a simple fix that involves checking the contents of the customizable parts of invoice template, and verifying that all opening tags have a closing tag.

We can help take a look if you can post the contents of your site’s invoice template in a pasteBin or GitHub Gist, then link here.


tsca

October 26, 2018 at 11:00 am

Thanks Josh – I cant see anything wrong myself, but another pair of eyes on it would be helpful!

https://pastebin.com/X6e1ApRW


Josh

  • Support Staff

October 26, 2018 at 11:16 am

That’s actually not the complete template, only one section. Can you post the contents of each section?


tsca

October 26, 2018 at 12:26 pm

Sorry. Here you go

https://pastebin.com/bzn2SNFE


Josh

  • Support Staff

October 26, 2018 at 12:51 pm

OK thanks. Within the [TICKET_LIST] section there’s some table markup
(<td>‘s and <tr>‘s), however, the [TICKET_LIST] shortcode is not within an html table.

You could either remove the table markup from within the [TICKET_LIST] section or wrap the [TICKET_LIST] shortcode in the appropriate table tags. The script that converts the html to PDF (DOMPDF) is much more strict than a web browser, so even an unclosed <td> tag will result in an error.

You could create a custom Invoice template from the default template (you go to Messages > Default Message Templates, then click Create Custom in the Invoice row) and use that as a reference.


tsca

October 29, 2018 at 4:18 am

Thank you Josh. In the end I reset the template and now it’s working fine.

The support post ‘PDF Download not working’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso