Support

Home Forums Event Espresso Premium PDF Download (2)

PDF Download (2)

Posted: June 16, 2018 at 4:28 am


Wassim Zeidan

June 16, 2018 at 4:28 am

When I hit the pdf button on the html receipt page, the pdf will not download. In Firefox, I get a blank page, in chrome server error 500.

I have read all similar posts on this topic but nothing worked.

I’m using
EE 3.1.37.13.P
the memory_limit is 256M
php70
GD & MBString extensions are installed
allow_url_fopen is enabled on all php versions (but in cPanel documentations it is mentioned that The system only displays this directive if you use the suPHP PHP handler. which are not enabled) should I enable mod_suexec and mod_suphp?

Regards


Tony

  • Support Staff

June 16, 2018 at 1:58 pm

Hi there,

A blank page/error 500 usually means a fatal error is being thrown on the server, if you look in your servers error logs can you see any errors from Event Espresso?

Or, if you add this snippet to your wp-config.php file:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

We can run a test and see if we can see the error then.


Wassim Zeidan

June 18, 2018 at 5:38 am

Hi tony,

Find below the error logs

PHP Deprecated:  Non-static method EE_VLM_DSCNT::instance() should not be called statically in /public_html/wp-content/plugins/espresso-volume-discounts-pr/espresso-volume-discounts.php on line 1452
PHP Notice:  Undefined property: stdClass::$venue_id in /public_html/wp-content/plugins/espresso-ticketing/functions.php on line 187

PHP Deprecated:  Non-static method EE_VLM_DSCNT::instance() should not be called statically in /public_html/wp-content/plugins/espresso-volume-discounts-pr/espresso-volume-discounts.php on line 1452

PHP Notice:  Undefined property: stdClass::$venue_id in /public_html/wp-content/plugins/espresso-ticketing/functions.php on line 187
PHP Deprecated:  Non-static method EE_VLM_DSCNT::instance() should not be called statically in /public_html/wp-content/plugins/espresso-volume-discounts-pr/espresso-volume-discounts.php on line 1452
PHP Notice:  Undefined property: stdClass::$venue_id in /public_html/wp-content/plugins/espresso-ticketing/functions.php on line 187

PHP Deprecated:  Non-static method EE_VLM_DSCNT::instance() should not be called statically in /public_html/wp-content/plugins/espresso-volume-discounts-pr/espresso-volume-discounts.php on line 1452
PHP Notice:  Undefined property: stdClass::$venue_id in /public_html/wp-content/plugins/espresso-ticketing/functions.php on line 187
PHP Fatal error:  Uncaught DOMPDF_Exception: No block-level parent found.  Not good. in /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/inline_positioner.cls.php:66

Stack trace:

#0 /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_decorator.cls.php(471): Inline_Positioner->position()

#1 /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/text_frame_reflower.cls.php(340): Frame_Decorator->position()

#2 /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_decorator.cls.php(477): Text_Frame_Reflower->reflow(NULL)

#3 /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/page_frame_reflower.cls.php(169): Frame_Decorator->reflow()

#4 /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_decorator.cls.php(477): Page_Frame_Reflower->reflow(NULL)

#5 /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/dompdf.cls.php(680): Frame_Deco in /public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/inline_positioner.cls.php on line 66


Tony

  • Support Staff

June 18, 2018 at 6:31 am

Ok, that error usually means you have invalid HTML in your Invoice template.

Are you using a custom Invoice template?

If you look in /wp-content/uploads/espresso/gateways/

Do you have an Invoice directory there?


Wassim Zeidan

June 18, 2018 at 6:59 am

Yes, there is an invoice directory in /wp-content/uploads/espresso/gateways/

and I’m not using a custom invoice


Tony

  • Support Staff

June 18, 2018 at 7:03 am

If you have an Invoice directory in /wp-content/uploads/espresso/gateways/ then you are using a custom invoice.

That location is used to override the default gateways in EE, rename the above directory to invoice-temp or similar, then try and download an Invoice PDF, does it work then?


Wassim Zeidan

June 18, 2018 at 7:39 am

I renamed the invoice directory to invoice-temp in /wp-content/uploads/espresso/gateways/ and I still have the same issue


Tony

  • Support Staff

June 19, 2018 at 5:21 am

Hmm ok.

Has this worked previously? If so what has changed between then and now?

You could try adding this snippet to your site:

https://gist.github.com/joshfeck/9aed35fdc2aa27f6b9884a79cf904ec9

Which works around an issue with libxml2 version 2.9.5 in-case that is in use on your server.

You can add that to a custom function plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Wassim Zeidan

June 20, 2018 at 7:33 am

Dear Tony,

Thank you for your reply, that solution worked

The support post ‘PDF Download (2)’ 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