Support

Home Forums Event Espresso Premium EE4 Download PDF link triggers critical error

EE4 Download PDF link triggers critical error

Posted: June 13, 2022 at 9:13 am

Viewing 5 reply threads


kevin l

June 13, 2022 at 9:13 am

When clicking the download pdf on the order confirmation page it causes a critical site error.

Here is in debug mode. Any help would be appreciated.

Notice: Trying to access array offset on value of type bool in /www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 501 Notice: Trying to access array offset on value of type bool in /www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 504 Fatal error: Uncaught Error: Class 'Svg\Document' not found in /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Helpers.php:619 Stack trace: #0 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Image/Cache.php(127): Dompdf\Helpers::dompdf_getimagesize('/tmp/ca_dompdf_...', NULL) #1 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/Image.php(55): Dompdf\Image\Cache::resolve_url('https://gaversf...', '', '', '', Object(Dompdf\Dompdf)) #2 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Frame/Factory.php(223): Dompdf\FrameDecorator\Image->__construct(Object(Dompdf\Frame), Object(Dompdf\Dompdf)) #3 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Dompdf.php(808): Dompdf\Frame\Factory::decorate_frame(Object(Dompdf\Frame), Object(Dompdf\Dompdf), Object(Dompdf\FrameDecorator\Page)) #4 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/mes in /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Helpers.php on line 619
There has been a critical error on this website.


kevin l

June 13, 2022 at 9:14 am

Accidently put it in code mode. This might be easier to read

Notice: Trying to access array offset on value of type bool in /www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 501 Notice: Trying to access array offset on value of type bool in /www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 504 Fatal error: Uncaught Error: Class ‘Svg\Document’ not found in /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Helpers.php:619 Stack trace: #0 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Image/Cache.php(127): Dompdf\Helpers::dompdf_getimagesize(‘/tmp/ca_dompdf_…’, NULL) #1 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/FrameDecorator/Image.php(55): Dompdf\Image\Cache::resolve_url(‘https://gaversf…’, ”, ”, ”, Object(Dompdf\Dompdf)) #2 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Frame/Factory.php(223): Dompdf\FrameDecorator\Image->__construct(Object(Dompdf\Frame), Object(Dompdf\Dompdf)) #3 /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Dompdf.php(808): Dompdf\Frame\Factory::decorate_frame(Object(Dompdf\Frame), Object(Dompdf\Dompdf), Object(Dompdf\FrameDecorator\Page)) #4 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/mes in /www/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Helpers.php on line 619
There has been a critical error on this website.


Tony

  • Support Staff

June 15, 2022 at 7:40 am

Hi there,

Apologies for the delayed reply.

Which PHP version are you running on the server, please?

Can you link me to either an event I can run a test registration on to view the Invoice/Receipt or link me to the Invoice/Receipt for a test registration so I can take a look?


kevin l

June 15, 2022 at 11:52 am

This reply has been marked as private.


Tony

  • Support Staff

June 15, 2022 at 12:06 pm

Thank you, the answer was right in my face on the initial error.

This is an issue with using an SVG file and you can find some details on this HERE.

I recommend switching to use another file format on the Invoice itself, you do that within the Invoice Pament method settings.

Event Espresso -> Payment methods -> Invoice.

(If it’s not active, temporarily activate it)

Set your logo image in the ‘Logo Image’ field, I’d recommend using a jpg for the PDF’s if possible.


kevin l

June 15, 2022 at 12:13 pm

Thank you, changing the logo on the invoice payment settings did it!

Viewing 5 reply threads

The support post ‘EE4 Download PDF link triggers critical error’ 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