Support

Home Forums Event Espresso Premium WordPress critical error

WordPress critical error

Posted: January 4, 2023 at 12:16 pm


Drio LLC

January 4, 2023 at 12:16 pm

Capitalwineschool.com is using EE for course registrations. For several weeks now users have intermittently been receiving an error message when they try to register for courses. All plugins and themes are up to date.

I’ve been trying to troubleshoot with my host, but they are not seeing any resource exhaustion on the site that would cause a 5xx error

Wordpress Error


Drio LLC

January 4, 2023 at 12:18 pm

I’m trying to post a screenshot. It appears broken in my initial post.
Image broken in initial post


Drio LLC

January 4, 2023 at 12:19 pm

last try


Tony

  • Support Staff

January 4, 2023 at 1:02 pm

Hi there,

When you get the above it would usually add a log entry to your PHP error logs, have you checked those for any ‘fatal errors’?


Drio LLC

January 6, 2023 at 4:57 pm

[04-Jan-2023 07:10:01] WARNING: [pool site-capitalwineschool.com] child 583 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: Return value of EE_Venue::country_ID() must be of the type string, null returned in /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Venue.class.php:204”

[04-Jan-2023 16:24:28] WARNING: [pool site-capitalwineschool.com] child 2711 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: Return value of EE_Venue::country_ID() must be of the type string, null returned in /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Venue.class.php:204”

[04-Jan-2023 16:24:33] WARNING: [pool site-capitalwineschool.com] child 2702 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: Return value of EE_Venue::country_ID() must be of the type string, null returned in /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Venue.class.php:204”


Drio LLC

January 9, 2023 at 10:33 am

Hi there. Checking in here. Let me know if you saw my last message.


Tony

  • Support Staff

January 10, 2023 at 8:03 am

Hi there,

Apologies for the delayed reply, I’ve created a ticket to fix the above in the next version of Event Espresso, I can give you a fix to apply on the site now if preferred?

\event-espresso-core-reg\core\db_classes\EE_Venue.class.php

Line 204 should be something like:

return $this->get('CNT_ISO');

Change that to be:

return (string) $this->get('CNT_ISO');


Drio LLC

January 17, 2023 at 9:58 am

I’ve made the updates that you mentioned. I let my client know and gave her some time to see if their customers were still having trouble.

I received a message from her yesterday that people were still having issues. This is what someone said “I attempted to register for the D2 diploma online class starting on 1/24 today but received an error message: “critical wordpress error.””

I downloaded the logs again, but there were no FATAL errors reported, of course they might not capture that exact attempt, since the logs only report part of yesterday.


Tony

  • Support Staff

January 18, 2023 at 5:40 am

Without the error being thrown I can’t tell what is happening or where to look (there are over 1 million lines of code within Event Espresso) so I need the error from the logs to be able to investigate.

If the errors are not logged in the PHP error logs, you could try adding this snippet:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

To your sites wp-config.php, that snippet replaces the single line:

define( 'WP_DEBUG', false );

Which is usually in the above and it tells WordPress to log the errors in a location we can view.

The support post ‘WordPress critical 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.

Event Espresso