Support

Home Forums Event Espresso Premium Ticket PDF button causes fatal error

Ticket PDF button causes fatal error

Posted: July 1, 2014 at 12:40 pm

Viewing 11 reply threads


Mike Danchanko

July 1, 2014 at 12:40 pm

when an attendee registers for an event and clicks PDF of ticket instead of printing it there is a fatal error below. what would be the resolution for this?

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sandyval/public_html/wp-content/plugins/event-espresso/tpc/dompdf/include/inline_positioner.cls.php on line 77


Lorenzo Orlando Caum

  • Support Staff

July 1, 2014 at 3:17 pm

Hi Mike,

Are you on the latest version of Event Espresso?


Lorenzo


Mike Danchanko

July 2, 2014 at 6:34 am

Hello Lorenzo – No, I have EE 3


Dean

July 2, 2014 at 6:53 am

Hi Mike,

Can you provide us with a link to an example ticket please? (Attendee Overview, click the ticket icon on the right, copy the url of the page it sends you to).


Mike Danchanko

July 2, 2014 at 6:55 am

Link below:

http://www.sandyvalememorialgardens.org/?ticket_launch=true&id=44&r_id=11-53b1d6e146ee9&html=true


Dean

July 2, 2014 at 7:08 am

Thanks for the link, it does indeed time out. That is quite odd, not seen it before.

Can you check your servers error logs to see if there is anything noted?

Also it may be worth setting the General Settings > Use full logging? option to Yes, testing the PDF download and checking the erro log (wp-content/uploads/espresso/logs

Remember to turn the Use full logging? off afterwards otherwise it will keep logging things and keep growing in size.

Also, what version of PHP are you running? You can check this via the System Status menu page.


Mike Danchanko

July 2, 2014 at 9:42 am

PHP Version:5.4.27

I will check server logs.

I set it to full logging and I see nothing related to PDF creation and just a bunch of entries similar to below:

[ 2014-07-02 15:40:56 ] espresso.php
VARS : interval = 60 & _nonce = ae6a40a823 & action = heartbeat & screen_id = event-espresso_page_events & has_focus = false & SpryMedia_DataTables_table_admin_php = {“iCreate”: 1404315610325,”iStart”: 0,”iEnd”: 1,”iLength”: 10,”sFilter”: “”,”sFilterEsc”: true,”aaSorting”: [ [0,’asc’]],”aaSearchCols”: [ [”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true],[”,true]],”abVisCols”: [ true,false,true,true,true,false,true,true,false,true,true,true,false,false,true]} & wordpress_9f09849415ec5ab41701e955ca411fe0 = siteadmin|1404478427|e42d913641453cf36614ff339f5ea5eb & wp-settings-2 = editor=tinymce&libraryContent=browse&imgsize=medium&wplink=1&hidetb=1&advImgDetails=show & wp-settings-time-2 = 1404160886 & PHPSESSID = 5c7598ef7454d70b92f2fca8e353fdfc & wordpress_test_cookie = WP Cookie check & wordpress_logged_in_9f09849415ec5ab41701e955ca411fe0 = siteadmin|1404478427|6f418902296ebde19625ac066b5b4007
[ 2014-07-02 11:40:56 ] registration_page.php -> FILE LOADED
[ 2014-07-02 11:40:56 ] cart.php -> FILE LOADED
[ 2014-07-02 11:40:56 ] espresso.php -> espresso_load_pricing_functions
[ 2014-07-02 11:40:56 ] espresso.php -> espresso_version
[ 2014-07-02 11:40:56 ] espresso.php -> espresso_export_certificate
[ 2014-07-02 11:40:56 ] espresso.php -> espresso_export_ticket
[ 2014-07-02 11:40:56 ] espresso.php -> ee_init_session
[ 2014-07-02 11:40:56 ] espresso-multi-registration.php -> load_event_espresso_cart_widget
[ 2014-07-02 11:40:56 ] espresso.php -> load_event_espresso_widget
[ 2014-07-02 11:40:56 ] espresso.php -> espresso_version
[ 2014-07-02 11:40:56 ] espresso.php -> ee_check_for_export


Dean

July 2, 2014 at 9:58 am

Hi Mike,

After doing some research and speaking to my colleagues here, it appears that this is an inconsistent error in the PDF software we use (DOMPDF).

It affects a small minority of people, but no one knows why.

There are a couple of potential things that could be tried:

Increase the maximum execution time – http://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded

Try reducing the PDF to one page (it currently spans two pages).

Other than that you could potentially move servers, as it is possible it is a server setting interfering. This is quite drastic and there is no way to know if the new server would not just do the same thing.

Another workaround would be to use CSS to hide the download PDF option, limiting users to printing it out.


Mike Danchanko

July 2, 2014 at 10:22 am

I deleted one image and it now works for some reason. The only issue is the pdf is always TWO pages no matter how much content trimming I do. If I put any additional content it goes to teh second page automatically. any ideas?


Josh

  • Support Staff

July 2, 2014 at 1:07 pm

Hi Mike,

I checked and it looks to me that if you scale the two images at the bottom down to 50% of their current size, it all should fit on one page.


Mike Danchanko

July 3, 2014 at 1:00 pm

yes, that fixed the issue – thanks!


Josh

  • Support Staff

July 3, 2014 at 1:09 pm

You’re welcome.

Viewing 11 reply threads

The support post ‘Ticket PDF button causes fatal 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