Support

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

Viewing 3 reply threads


OBHC

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 dan@lundmark.com (developer) on any responses.

I’ve received the following message via email:

Howdy!

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:
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/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/domain/services/event/EventSpacesCalculator.php. Error message: Uncaught DomainException: An EE_Ticket for Event 4338 was supplied while calculating event space availability for Event 12619. in /var/www/vhosts/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/domain/services/event/EventSpacesCalculator.php:222
Stack trace:
#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()
#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()
#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()
#3 /var/www/vhosts/obhcouncil.org/httpdocs/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Event.class.php(1021): EE_Event->perform_sol

The following was also sent to me via our developer (dan@lundmark.com)

2022-01-24 12:45:42 Error 74.214.243.68 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 74.214.243.68 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


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?


OBHC

January 26, 2022 at 12:05 am

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


Tony

  • 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)

Viewing 3 reply threads

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