Home Forums Event Espresso Premium Critical Error when trying to publish event.

Critical Error when trying to publish event.

Posted: January 24, 2022 at 11:09 am


January 24, 2022 at 11:09 am

I’m getting a “Critical Error” message when I attempt to publish a new event on event espresso. Please CC (developer) on any responses.

I’ve received the following message via email:


Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, Event Espresso.

First, visit your website ( and check for any visible issues. Next, visit the page where the error was caught ( and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.


To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.8.3
Current theme: Beaver Builder Child Theme (version 1.0)
Current plugin: Event Espresso (version 4.10.25.p)
PHP version 7.4.27

Error Details
An error of type E_ERROR was caused in line 222 of the file /var/www/vhosts/ Error message: Uncaught DomainException: An EE_Ticket for Event 4338 was supplied while calculating event space availability for Event 12619. in /var/www/vhosts/
Stack trace:
#0 /var/www/vhosts/ EventEspresso\core\domain\services\event\EventSpacesCalculator->validateTicket()
#1 /var/www/vhosts/ EventEspresso\core\domain\services\event\EventSpacesCalculator->setActiveTickets()
#2 /var/www/vhosts/ EE_Event->spaces_remaining()
#3 /var/www/vhosts/ EE_Event->perform_sol

The following was also sent to me via our developer (

2022-01-24 12:45:42 Error 500 GET /wp-admin/admin.php?page=espresso_events&action=edit&post=12683&edit_nonce=a74ae7739a&return=default HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 4.69 K Apache SSL/TLS access

2022-01-24 12:45:44 Error AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught DomainException: An EE_Ticket for Event 4340 was supplied while calculating event space availability for Event 12683. in /var/www/vhosts/\nStack trace:\n#0 /var/www/vhosts/ EventEspresso\\core\\domain\\services\\event\\EventSpacesCalculator->validateTicket()\n#1 /var/www/vhosts/ EventEspresso\\core\\domain\\services\\event\\EventSpacesCalculator->setActiveTickets()\n#2 /var/www/vhosts/ EE_Event->spaces_remaining()\n#3 /var/www/vhosts/…’, referer: Apache error

Brent Christensen

  • Support Staff

January 24, 2022 at 5:25 pm

Have you made any changes to the database in the recent past and/or deleted any old content?


January 26, 2022 at 12:05 am

I don’t think so? This is a new license on a new domain.


  • Support Staff

January 26, 2022 at 6:34 am

Hi there,

The error you are getting is basically saying EE was giving tickets that should be for Event X (in this case ID 12638) but was actually giving tickets for a different Event (in this case ID 4340).

Usually, when this happens it is because either someone has manually altered the database tables, or migrated a sites EE tables and ‘reset’ WordPress tables but not Event Espresso’s (which then breaks the relationships between pretty much everything as the foreign keys don’t match).

I saw in an email about this issue that the site has been migrated, may I ask how that was done?

(Note if you prefer to post reply via email on this issue that’s no problem just let me know and I’ll close this thread)

The support post ‘Critical Error when trying to publish event.’ 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