Support

Home Forums Event Espresso Premium WP critical error when attempting to view/edit attendee payments

WP critical error when attempting to view/edit attendee payments

Posted: March 17, 2022 at 11:03 am

Viewing 4 reply threads


william Kaczor

March 17, 2022 at 11:03 am

Hi:

Here are the plugins/versions that we’re using:
Event Espresso – Version 3.1.37.18.P
EE Calendar – Version 2.2.9.p
EE Multi Event Registration – Version 1.0.5.p
EE Permissions – Version 1.5.5.p
EE Recurring Events – Version 1.1.9.p

When we go to an Event Attendees page for an event, then click on either the icon in the status column, or on the little icon in the Actions column to “edit payment” in order to get to the “Edit Attendee Payment Record” screen, we get a critical error on this screen. We are unable to view or edit attendee payment records.

The error we get on the screen is just “There has been a critical error on this website. Please check your site admin email inbox for instructions.”, of course.

The error the WP administrator gets by email is:

Error Details
=============
An error of type E_ERROR was caused in line 677 of the file /home4/ancestr8/public_html/wp-content/plugins/event-espresso/includes/admin-reports/edit_attendee_record.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home4/ancestr8/public_html/wp-content/plugins/event-espresso/includes/admin-reports/edit_attendee_record.php:677
Stack trace:
#0 /home4/ancestr8/public_html/wp-content/plugins/event-espresso/includes/event-management/index.php(133): edit_attendee_record()
#1 /home4/ancestr8/public_html/wp-includes/class-wp-hook.php(307): event_espresso_manage_events(”)
#2 /home4/ancestr8/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#3 /home4/ancestr8/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#4 /home4/ancestr8/public_html/wp-admin/admin.php(259): do_action(‘event-espresso_…’)
#5 {main}
thrown

Can you help us figure out what might be the problem?

Thanks!


Tony

  • Support Staff

March 18, 2022 at 6:09 am

Hi there,

The error you are getting means your server is running PHP8 which Event Espresso is not currently compatible with.

As it stands to fix this you’ll need to switch the PHP version in use on the site down to PHP7 (the highest version of PHP7 available should work fine).

Your host will usually have a section in your control panel to set this but if not they should be able to do it for you if you open a ticket with them.


william Kaczor

March 19, 2022 at 10:49 am

Awesome thank so much!

Out of curiosity, is this the case with EE4 as well? Does EE4 also currently require PHP7?

Thanks!


Tony

  • Support Staff

March 21, 2022 at 5:10 am

Yes, but not for the same reasons as EE3.

For the most part, EE4 is PHP8 compatible although we do have some 3rd part libraries within core that are not (for example the version of DOMPDF we uses to generate Invoice PDF’s is not PHP8 compatible) but it does throw some deprecated notices and we are working on making EE4 PHP8 compatible.

We had to wait on few WordPress core changes for PHPunit etc but now they’ve been fixed in core we can start working towards it again.


william Kaczor

March 21, 2022 at 12:53 pm

Thanks for the detailed information.

Viewing 4 reply threads

The support post ‘WP critical error when attempting to view/edit attendee payments’ 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