Support

Home Forums Event Espresso Premium Maximum execution time of 30 seconds exceeded error when downloading Receipts

Maximum execution time of 30 seconds exceeded error when downloading Receipts

Posted: April 11, 2016 at 2:13 pm

Viewing 13 reply threads


malctrainingevents

April 11, 2016 at 2:13 pm

Hi,

When registrants try to download their PDF Receipt by clicking the “View full order confirmation receipt” button on the Thank You page and then the “Download PDF” button on the next page (showing the receipt), they receive the following errors:

Warning: DOMNode::cloneNode(): ID invoice already defined in …/public_html/malctraining.com/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/frame_decorator.cls.php on line 429

Fatal error: Maximum execution time of 30 seconds exceeded in …/public_html/malctraining.com/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/class.pdf.php on line4342

This does not occur when switching to the Invoice with the “Switch to Invoice” button and then clicking the “Download PDF” button. The invoice PDF’s are downloaded without any issues.

I have found a rather old forum post about this issue but the suggestion to trim down the Receipt to 1 page does not work for me. Since the post is from 2014, I am hoping you’ve got a solution for this problem by now, other than switching hosts?

Should there be no solution, just to offer the Invoice as a PDF download would be sufficient too. However, when I disable the Receipt message type, downloading Invoices isn’t offered on the Thank You page either. No blue “view/download Invoice” button as I would expect is being displayed.

As soon as I drag “Receipt” back to the active messages, the “View full order confirmation receipt” download button is shown on the Thank You page (screenshot: http://screencast.com/t/tK4VxDBV) but that ofcourse re-introduces the issue with the Receipts.

I have disabled Receipts by dragging it to the “Inactive Message Type” box in: Event Espresso – Messages Settings > Settings > HTML. Screenshot of the settings: http://screencast.com/t/B4CPfC1He

This triggers this Thank You page that lacks a way to download the Invoice: http://screencast.com/t/MV8znMXT2xz

Hope you can help me either solve the Receipt download issue or to offer Invoice downloads only from the Thank You page.

Thanks!
Syl


Josh

  • Support Staff

April 11, 2016 at 2:58 pm

Hi there,

Can you contact your host and ask them to set this for PHP max_execution time?

max_execution_time = 60


malctrainingevents

April 11, 2016 at 4:27 pm

Hi Josh,

I can, but this wasn’t a solution in the other forum post either. Any other suggestions?


malctrainingevents

April 11, 2016 at 5:39 pm

My host set max_execution_time = 60 >>> WORKS!

Thanks 🙂


malctrainingevents

April 11, 2016 at 5:53 pm

Though only if I trim the PDF to one page. I can live with that 🙂


Lorenzo Orlando Caum

  • Support Staff

April 12, 2016 at 8:46 am

Hello,

I see that you posted that you were able to getting this running by increasing the value to 60 seconds.

Were there any other questions that we could help you with today?


Lorenzo


malctrainingevents

April 13, 2016 at 10:32 am

Hi Lorenzo,

The issue was solved by increasing the value to 60. However, an update to WP 4.5 reintroduces the issue. I’ve rolled back to the previous version of WP and it all works again.

Hope you can fix this in a new EE version?

Thanks!
Syl


Lorenzo Orlando Caum

  • Support Staff

April 13, 2016 at 10:50 am

Hello,

I have not seen this on our testing sites (running the latest version of WP and Event Espresso) so this may be a setting issue with your host. Who is your web host?


Lorenzo


malctrainingevents

April 13, 2016 at 2:29 pm

Inmotion Hosting. If it would be a setting on their end, wouldn’t the error occur on the previous version of WP too?


Josh

  • Support Staff

April 13, 2016 at 6:03 pm

Can you post the error that you’re seeing now, or is it still saying “Fatal error: Maximum execution time of 30 seconds exceeded in”?

If it’s still saying the max execution time limit is 30 seconds, the host should probably look into this.


malctrainingevents

April 16, 2016 at 8:33 am

It’s still the same issue. However only when I update WordPress. How would that be an issue at my host? I mean, I’d contact them but I am afraid they’ll point me right back to you….


Tony

  • Support Staff

April 18, 2016 at 2:43 am

The reason Josh is suggesting you contact your host if the error messages shows:

“Fatal error: Maximum execution time of 30 seconds exceeded in”

Is because it should not show 30 seconds any longer if you have updated the server settings, it should be 60. If it shows 30 seconds then max_execution_time is back to 30 seconds.

So if you’ve updated the value, but it still shows 30 seconds, you need to contact your host and have them see why.

Also…

When this error first started had you modified the Receipt template at all? (Besides reducing it down to a single page, just any modifications at all)

The last time this happens it turned out to be caused by invalid HTML within the Receipt which then caused problems within DOMPDF and caused the timeout. The default template should not cause this. (unless your including HTML within your event that is not expected)


malctrainingevents

April 27, 2016 at 3:35 pm

Hi,

Just installed the latest Espresso update and then updated to WP 4.5.1> error no longer occurs.


Tony

  • Support Staff

April 28, 2016 at 4:49 am

Thank you for letting us know, I’ glad its working 🙂

I’ll mark this thread resolved, if you do run into further problems please feel free to open up a new thread and we can investigate.

Viewing 13 reply threads

The support post ‘Maximum execution time of 30 seconds exceeded error when downloading Receipts’ 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