Support

Home Forums Event Espresso Premium Cannot Download PDF Ticket

Cannot Download PDF Ticket

Posted: October 9, 2017 at 4:12 pm

Viewing 7 reply threads


Jennifer Mackinder

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


Tony

  • Support Staff

October 10, 2017 at 2:29 am

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.


Jennifer Mackinder

October 10, 2017 at 3:26 am

Thanks Tony,
So would it be fixed if I upgraded to PHP 7? And this is ok to do on an Event Espresso version 3 system?


Tony

  • Support Staff

October 10, 2017 at 3:39 am

So would it be fixed if I upgraded to PHP 7?

Upgrading isn’t likely to fix the problem, its an issue with the latest versions libxml so updating doesn’t help currently.

And this is ok to do on an Event Espresso version 3 system?

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?


Jennifer Mackinder

October 10, 2017 at 6:05 am

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?


Josh

  • Support Staff

October 10, 2017 at 1:14 pm

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.


Jennifer Mackinder

October 10, 2017 at 2:53 pm

Thank you so much Josh.
All working again now.


Tony

  • Support Staff

October 12, 2017 at 3:48 pm

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)

Viewing 7 reply threads

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.

Event Espresso