• Resolved AJD

    (@ajd)


    There is a fatal error triggered when a user on the front end deletes an event. I have tested this with an admin user and regular user granted event edit and delete privileges. I have also tested it with all other plugins disabled on a default theme.

    When deleting an event from the front end here is the error:

    Warning: count(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/events-manager/em-actions.php on line 127

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/events-manager/em-actions.php:127) in /wp-content/plugins/events-manager/classes/em-notices.php on line 46

    The page I need help with: [log in to see the link]

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

    (@angelo_nwl)

    looking at the above notification message, it seems that it’s more of a PHP warning message and you can try to disable wp_debug in your wp-config.php to hide this in your admin or frontend site, however, I’m going to try this myself and inform the Devs if needed.

    Thread Starter AJD

    (@ajd)

    The issue triggers a white screen, not just a warning, and is stopping users from being able to delete events. Only admins can delete them.

    Thread Starter AJD

    (@ajd)

    Any status update on this? Thanks

    • This reply was modified 4 years, 9 months ago by AJD.

    Hello,

    I’ve been testing this on my Test sites and so far I can’t replicate this one. Can you perhaps confirm that you’re using the latest version of WordPress and Events Manager? What version of PHP are you also using?

    As an additional test, Can you try and disable all plugins and change the theme to any of twenty series theme. (ie: twenty nineteen), After changing to the theme, Please activate only Events Manager and make other plugins as disabled and try to delete events again. There’s a chance that it may be a plugin or theme conflict

    Thread Starter AJD

    (@ajd)

    Hi, thank you. The PHP version is 7.3. WP and EM are at the latest versions.

    I did a test with only Events Manager active (all other plugins disabled) and the 2020 theme active and when I try to delete an event I still get this error message on a white screen:

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/***/staging/1/wp-content/plugins/events-manager/em-actions.php on line 127

    Warning: Cannot modify header information – headers already sent by (output started at /home/***/staging/1/wp-content/plugins/events-manager/em-actions.php:127) in /home/***/staging/1/wp-content/plugins/events-manager/classes/em-notices.php on line 46

    I also deleted and reinstalled Events Manger just in case some of the core files were corrupted or had been altered.

    Manage events page:
    https://www.webpagescreenshot.info/#v2=-Yi9C_03o

    After clicking delete:
    https://www.webpagescreenshot.info/#v2=_Y27uZyM8

    I can give you access to this development site if you would like to see it.

    • This reply was modified 4 years, 9 months ago by AJD.
    • This reply was modified 4 years, 9 months ago by AJD.
    • This reply was modified 4 years, 9 months ago by AJD.
    • This reply was modified 4 years, 9 months ago by AJD.
    • This reply was modified 4 years, 9 months ago by AJD.
    • This reply was modified 4 years, 9 months ago by AJD.

    Hello,

    Can you perhaps try changing the PHP version to PHP 7.2 or 7.0 and test if it still happens?

    Thread Starter AJD

    (@ajd)

    It looks pretty much the same in 7.2 , 7.1, 7.0 — won’t delete

    Plugin Support angelo_nwl

    (@angelo_nwl)

    unfortunately, at the moment we are unable to replicate this issue using the latest EM 5.9.7.5, however, have you tried disabling wp_debug and see if it makes any difference?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal errors when deleting events’ is closed to new replies.