Posted: 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.
|
|
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 |
|
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? |
|
This reply has been marked as private. | |
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. |
|
Thank you, changing the logo on the invoice payment settings did it! |
|
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.