Posted: 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 |
Hi, The same error has been reported elsewhere: 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. |
|
|
Thanks Josh – I cant see anything wrong myself, but another pair of eyes on it would be helpful! |
That’s actually not the complete template, only one section. Can you post the contents of each section? |
|
|
Sorry. Here you go |
OK thanks. Within the [TICKET_LIST] section there’s some table markup 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 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. |
|
|
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.