• Hi Guys –

    I just started using your plugin to manage the events for my organization. The functionality seems very thorough and it worked well during my testing. Thanks for developing it! But after I deployed it, I started getting a fatal error.

    When going to the all-events Bookings Dashboard, Events -> Bookings, https://mysite/wp-admin/edit.php?post_type=event&page=events-manager-bookings, a title and then a blank page is displayed. No bookings are shown.

    But if I first go to a single event, then to the bookings page from there, Events -> Events -> select one event -> View Bookings, https://mysite/wp-admin/edit.php?post_type=event&page=events-manager-bookings&event_id=3&ticket_id=3, I then can see the bookings for that event.

    Also, when I go to the all-events Bookings Dashboard I get an email with the following error:

    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, Events Manager. First, visit your website (https://mysite/) and check for any visible issues. Next, visit the page where the error was caught (https://mysite/wp-admin/edit.php?post_type=event&page=events-manager-bookings) 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. https://mysite/?page_id=373&action=enter_recovery_mode&rm_token=k0gNu76hpeALQX4iBV4IP3&rm_key=szpppXvc5LTkJ9WHCXFeQ3 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 6.1.1 Active theme: OceanWP Child (version 3.1.2.1642027616) Current plugin: Events Manager (version 6.3) PHP version 8.0.27 Error Details ============= An error of type E_ERROR was caused in line 963 of the file /var/www/wp-content/plugins/events-manager/admin/dashboard.php. Error message: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /var/www/wp-content/plugins/events-manager/admin/dashboard.php:963 Stack trace: #0 /var/www/wp-content/plugins/events-manager/admin/dashboard.php(963): implode(‘,’, ‘all’) #1 /var/www/wp-content/plugins/events-manager/admin/em-bookings.php(64): EM\Admin\Dashboard::output(‘dashboard’) #2 /var/www/wp-content/plugins/events-manager/admin/em-bookings.php(45): em_bookings_dashboard() #3 /var/www/wp-includes/class-wp-hook.php(308): em_bookings_page(”) #4 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #5 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/wp-admin/admin.php(259): do_action(‘event_page_even…’) #7 /var/www/wp-admin/edit.php(10): require_once(‘/var/www/wp-adm…’) #8 {main} thrown

    Have you seen this issue before? Any suggestions?

    Thanks!

    Mike

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try the following steps:

    • Switch to a default theme (like Twenty Twenty-Three)
    • Disable all plugins (except for Events Manager)

    Then see if the problem is still there. If not start enabling plugins one at a time until the problem shows up again. Finally try switching back to the Ocean WP child theme. If the problem occurs in the child theme then it could be something added to the functions.php in the child theme.

    Thread Starter mhartste

    (@mhartste)

    Thanks, @joneiseman, that’s a good suggestion.

    I deactivated all the plugins except for Events Manager and changed the theme to Twenty Twenty-Three, and the problem is still there.

    Are you with the Events Manager team?

    Do you have other suggestions?

    Mike

    No, I’m not with the Events Manager team. When I go to the Event Bookings Dashboard, I don’t get any errors. It must be something unique to your setup or some problem in your database. I hope the Events Manager team can help you with this.

    Thread Starter mhartste

    (@mhartste)

    Some further info … I set Settings -> Bookings -> Booking Chart Options -> Display on bookings dashboard to No. The graphs no longer display on the Bookings Dashboard, but it now works.

    @mhartste another fix would be to replace the line 963 of /var/www/wp-content/plugins/events-manager/admin/dashboard.php which throws the error with this line:

    // $status_arg = implode(',', $args['status']);
    $status_arg = is_array($args['status']) ? implode(',', $args['status']) : $args['status'];

    The implode function is used to convert the array to a comma separated string. With this change it will do the same, but if status is already a string instead of a array, it just uses the string.

    Thread Starter mhartste

    (@mhartste)

    Thanks, @heazog, that change did fix the problem and it works now.

    But, the next time the plugin is updated, this change will be wiped out. Do you know how to get the developer to fix it permanently?

    Thanks,

    Mike

    @mhartste great!
    Yes, thats right, it will be wiped out after update.
    So we have to hope it will be fixed in the next update – i also don’t know how to reach the developers. :/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error on Bookings Dashboard’ is closed to new replies.