• When deleting a user created event via the front end of the website I am getting this error:

    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/customer/www/staging.site.org/public_html/wp-content/plugins/events-manager/em-actions.php:127

    The event is successfully deleted after reloading the page.

    This is using the most recent version ( 6.1.2.1) of the Events Manager plugin and WordPress 6.0.2.
    PHP version 8.0.23

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I see what you mean, I’m going to inform the Devs about this; however, I’m not getting a Fatal error and only a Warning message which can be hidden by turning off WP_DEBUG to false

    Thread Starter AJD

    (@ajd)

    Thanks.

    I get warnings when I create an event but fatal errors when deleting in php 8.1.10 and 8.0.23.

    • This reply was modified 2 years, 5 months ago by AJD.
    Plugin Support angelo_nwl

    (@angelo_nwl)

    Yes, I was able to see that as well and reported this; should get fixed soon.

    // Chuchy fixed in …plugins/events-manager/em-actions.php:127
    //$plural = (count($selectedEvents) > 1) ? __(‘Events’,’events-manager’):__(‘Event’,’events-manager’);
    $plural = (count(array($selectedEvents)) > 1) ? __(‘Events’,’events-manager’):__(‘Event’,’events-manager’);

    Thread Starter AJD

    (@ajd)

    @chuchy10 Thanks, that does fix it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error When Deleting a Users Event’ is closed to new replies.