Posted: October 9, 2017 at 4:12 pm
|
When clicking on the Download button to download the PDF ticket we get the following error with WP_DEBUG set to true: Fatal error: Uncaught exception ‘DOMPDF_Exception’ with message ‘No block-level parent found. Not good.’ in /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/inline_positioner.cls.php:66 Stack trace: #0 /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_decorator.cls.php(471): Inline_Positioner->position() #1 /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/text_frame_reflower.cls.php(340): Frame_Decorator->position() #2 /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_decorator.cls.php(477): Text_Frame_Reflower->reflow(NULL) #3 /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/page_frame_reflower.cls.php(169): Frame_Decorator->reflow() #4 /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_decorat in /hsphere/local/home/bgc01/thehighteaparty.com.au/wp-content/plugins/event-espresso/tpc/dompdf/include/inline_positioner.cls.php on line 66 |
Hi Jennifer, It looks like this is happening because of the version of libxml installed on your server (See HERE), we use DOMPDF to generate the PDFs through Event Espresso. We have a ticket for this which will be reviewed and tested before being released in the next version of EE. |
|
|
Thanks Tony, |
Upgrading isn’t likely to fix the problem, its an issue with the latest versions libxml so updating doesn’t help currently.
Hmm, I completely missed that you are using EE3! (EE4 on the brain today) It’s the same issue with both versions as they both use DOMPDF. Can I ask why you have not update to EE4? Is there a feature you are waiting for? |
|
|
We’ve done some customizing of version 3 which won’t work in version 4. So I’m guessing you won’t be releasing a fix for version 3? |
Fixes for version 3 and its add-ons are not released frequently. You can add the following code to your website which will fix this: https://gist.github.com/joshfeck/9aed35fdc2aa27f6b9884a79cf904ec9 You can add the above code into a functions plugin or into your WordPress theme’s functions.php file. |
|
|
Thank you so much Josh. |
Hi Jennifer, I’ve be doing some investigating into this and was wondering if you also have issues download the PDF invoice? To test you need to view the attendees for an event (Event Overview -> {hover over event} -> Attendees, then click the PDF icon in actions. Does that also throw an error or work as expected? (the above fix won’t make any changes to that PDF, so you don’t need to remove the above to test this) |
|
The support post ‘Cannot Download PDF Ticket’ 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.