Posted: 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 firstname.lastname@example.org (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 (https://obhcouncil.org/) and check for any visible issues. Next, visit the page where the error was caught (https://obhcouncil.org/wp-admin/admin.php?page=espresso_events&action=edit&post=12619&edit_nonce=a74ae7739a) 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.
** REMOVED **
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:
The following was also sent to me via our developer (email@example.com)
2022-01-24 12:45:42 Error 22.214.171.124 500 GET /wp-admin/admin.php?page=espresso_events&action=edit&post=12683&edit_nonce=a74ae7739a&return=default HTTP/1.0 https://obhcouncil.org/wp-admin/admin.php?page=espresso_events&action=default&_wpnonce=14852d0500&default_nonce=14852d0500&return=trash_events 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 126.96.36.199 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/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/domain/services/event/EventSpacesCalculator.php:222\nStack trace:\n#0 /var/www/vhosts/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/domain/services/event/EventSpacesCalculator.php(186): EventEspresso\\core\\domain\\services\\event\\EventSpacesCalculator->validateTicket()\n#1 /var/www/vhosts/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php(892): EventEspresso\\core\\domain\\services\\event\\EventSpacesCalculator->setActiveTickets()\n#2 /var/www/vhosts/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php(936): EE_Event->spaces_remaining()\n#3 /var/www/vhosts/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.cla…’, referer: https://obhcouncil.org/wp-admin/admin.php?page=espresso_events&action=default&_wpnonce=14852d0500&default_nonce=14852d0500&return=trash_events Apache error
Have you made any changes to the database in the recent past and/or deleted any old content?
I don’t think so? This is a new license on a new domain.
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.