Support

Home Forums Event Espresso Premium Fatal Error Trying to Download PDF of Receipt

Fatal Error Trying to Download PDF of Receipt

Posted: August 15, 2022 at 12:27 pm


asse2014

August 15, 2022 at 12:27 pm

Getting a Fatal Error while Trying to Download PDF of Receipt. Turned on wp-debug and found the report below. Any ideas on how to solve?

Deprecated: Required parameter $dompdf follows optional parameter $paper in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Adapter/CPDF.php on line 182

Deprecated: Required parameter $dompdf follows optional parameter $paper in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Canvas.php on line 27

Deprecated: Required parameter $img follows optional parameter $w in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/Cpdf.php on line 4722

Deprecated: Required parameter $data follows optional parameter $w in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/Cpdf.php on line 5065

Deprecated: Required parameter $imageWidth follows optional parameter $w in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/Cpdf.php on line 5409

Deprecated: Required parameter $imageHeight follows optional parameter $w in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/Cpdf.php on line 5409

Deprecated: Required parameter $imgname follows optional parameter $w in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/Cpdf.php on line 5409

Deprecated: Required parameter $pattern_name follows optional parameter $corner_style in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Renderer/AbstractRenderer.php on line 827

Fatal error: Uncaught TypeError: Unsupported operand types: string + float in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/AbstractFrameReflower.php:288 Stack trace: #0 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(899): Dompdf\FrameReflower\AbstractFrameReflower->get_min_max_width() #1 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/AbstractFrameReflower.php(248): Dompdf\FrameDecorator\AbstractFrameDecorator->get_min_max_width() #2 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(899): Dompdf\FrameReflower\AbstractFrameReflower->get_min_max_width() #3 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Cellmap.php(645): Dompdf\FrameDecorator\AbstractFrameDecorator->get_min_max_width() #4 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Cellmap.php(518): Dompdf\Cellmap->add_frame(Object(Dompdf\FrameDecorator\TableCell)) #5 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Cellmap.php(518): Dompdf\Cellmap->add_frame(Object(Dompdf\FrameDecorator\TableRow)) #6 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Cellmap.php(518): Dompdf\Cellmap->add_frame(Object(Dompdf\FrameDecorator\TableRowGroup)) #7 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Table.php(532): Dompdf\Cellmap->add_frame(Object(Dompdf\FrameDecorator\Table)) #8 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Table.php(408): Dompdf\FrameReflower\Table->get_min_max_width() #9 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\FrameReflower\Table->reflow(Object(Dompdf\FrameDecorator\Block)) #10 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Block.php(845): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow(Object(Dompdf\FrameDecorator\Block)) #11 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\FrameReflower\Block->reflow(Object(Dompdf\FrameDecorator\Block)) #12 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Block.php(845): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow(Object(Dompdf\FrameDecorator\Block)) #13 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\FrameReflower\Block->reflow(Object(Dompdf\FrameDecorator\Block)) #14 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Block.php(845): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow(Object(Dompdf\FrameDecorator\Block)) #15 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\FrameReflower\Block->reflow(Object(Dompdf\FrameDecorator\Block)) #16 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Block.php(845): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow(Object(Dompdf\FrameDecorator\Block)) #17 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\FrameReflower\Block->reflow(NULL) #18 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/Page.php(141): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() #19 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\FrameReflower\Page->reflow(NULL) #20 /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Dompdf.php(843): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() #21 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Pdf_messenger.class.php(343): Dompdf\Dompdf->render() #22 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Pdf_messenger.class.php(267): EE_Pdf_messenger->_do_pdf(‘<!doctype html>…’) #23 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Pdf_messenger->_send_message() #24 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(678): EE_messenger->send_message(Object(EE_Message), Object(EE_Receipt_message_type)) #25 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(605): EE_Messages_Queue->_do_send(Object(EE_Message), Object(EE_Pdf_messenger), Object(EE_Receipt_message_type)) #26 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(552): EE_Messages_Queue->_process_message(Object(EE_Message), Object(EE_Pdf_messenger)) #27 /public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(460): EE_Messages_Queue->execute(false, Object(EE_Pdf_messenger)) #28 /public/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(287): EE_Messages_Processor->generate_and_send_now(Object(EE_Message_To_Generate_From_Request)) #29 /public/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php(240): EED_Messages->run(Object(WP_Query)) #30 /public/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php(181): EE_Module_Request_Router->_module_router(‘EED_Messages’, ‘run’) #31 /public/wp-content/plugins/event-espresso-core-reg/core/EE_Front_Controller.core.php(231): EE_Module_Request_Router->resolve_route(‘ee’, ‘msg_url_trigger’) #32 /public/wp-includes/class-wp-hook.php(307): EE_Front_Controller->pre_get_posts(Object(WP_Query)) #33 /public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #34 /public/wp-includes/plugin.php(524): WP_Hook->do_action(Array) #35 /public/wp-includes/class-wp-query.php(1805): do_action_ref_array(‘pre_get_posts’, Array) #36 /public/wp-includes/class-wp-query.php(3586): WP_Query->get_posts() #37 /public/wp-includes/class-wp.php(648): WP_Query->query(Array) #38 /public/wp-includes/class-wp.php(775): WP->query_posts() #39 /public/wp-includes/functions.php(1330): WP->main(”) #40 /public/wp-blog-header.php(16): wp() #41 /public/index.php(17): require(‘…’) #42 {main} thrown in /public/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameReflower/AbstractFrameReflower.php on line 288

There has been a critical error on this website.

Learn more about troubleshooting WordPress.


Tony

  • Support Staff

August 16, 2022 at 9:27 am

Hi there,

That error happens when using PHP8 on the server as Event Espresso does not currently fully support PHP8.

I recommend contacting your host and having them switch your site to use PHP7.4 (which is the highest version EE currently fully supports) which will prevent the above (and other PHP8 related) errors.


asse2014

August 16, 2022 at 9:31 am

How long until EE fully support PHP8? Hosting company is forcing all sites away from PHP7.4 starting in January 2023.


Tony

  • Support Staff

August 17, 2022 at 6:09 am

I can’t give you an ETA currently but we are working on making the codebases PHP8 compatible.

We have a huge codebase, EE4 core alone is over 720k lines of code so it takes a fair amount of time to work through each of the compatibility issues. We’ve also been help up by other libraries used within EE4 not supporting PHP8 but its getting there.

So the short answer right now is as soon as we possibly can but I can’t give you an exact date.

The support post ‘Fatal Error Trying to Download PDF of Receipt’ 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