Posted: 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 |
Hi Mike, Are you on the latest version of Event Espresso? — |
|
|
Hello Lorenzo – No, I have EE 3 |
|
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). |
|
Link below: http://www.sandyvalememorialgardens.org/?ticket_launch=true&id=44&r_id=11-53b1d6e146ee9&html=true |
|
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. |
|
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 |
|
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. |
|
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? |
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. |
|
|
yes, that fixed the issue – thanks! |
You’re welcome. |
|
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.