• Resolved slewisma

    (@slewisma)


    Updated a bunch of sites this morning. Now many, but not all, are down with fatal errors. Rolling back to 6.4.12 seems to fix it.

    Here’s the debug log, genericized to “website” instead of actual account name:

    [30-Jul-2024 14:50:11 UTC] PHP Warning: Undefined variable $location_fields in /home/website/public_html/wp-content/plugins/events-manager/classes/em-events.php on line 91
    [30-Jul-2024 14:50:11 UTC] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/website/public_html/wp-content/plugins/events-manager/classes/em-events.php:91
    Stack trace: 0 /home/website/public_html/wp-content/plugins/events-manager/classes/em-events.php(91): in_array(‘recurrence_id’, NULL) 1 /home/website/public_html/wp-content/plugins/events-manager/classes/em-events.php(297): EM_Events::get(Array) 2 /home/website/public_html/wp-content/plugins/events-manager/templates/templates/events-list.php(16): EM_Events::output(Array) 3 /home/website/public_html/wp-content/plugins/events-manager/events-manager.php(847): include(‘/home/website…’) 4 /home/website/public_html/wp-content/plugins/events-manager/em-shortcode.php(157): em_locate_template(‘templates/event…’, true, Array) 5 /home/website/public_html/wp-includes/shortcodes.php(434): em_get_events_list_shortcode(Array, ”, ‘events_list’) 6 [internal function]: do_shortcode_tag(Array) 7 /home/website/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(events…’, ‘do_shortcode_ta…’, ‘<figure class=”…’) 8 /home/website/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(‘<figure class=”…’) 9 /home/website/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<figure class=”…’, Array) 10 /home/website/public_html/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<figure class=”…’) 11 /home/website/public_html/wp-content/themes/generatepress/content-page.php(73): the_content() 12 /home/website/public_html/wp-includes/template.php(812): require(‘/home/website…’) 13 /home/website/public_html/wp-includes/template.php(745): load_template(‘/home/website…’, false, Array) 14 /home/website/public_html/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) 15 /home/website/public_html/wp-content/themes/generatepress/inc/theme-functions.php(568): get_template_part(‘content’, ‘page’) 16 /home/website/public_html/wp-content/themes/generatepress/page.php(34): generate_do_template_part(‘page’) 17 /home/website/public_html/wp-includes/template-loader.php(106): include(‘/home/website…’) 18 /home/website/public_html/wp-blog-header.php(19): require_once(‘/home/website…’) 19 /home/website/public_html/index.php(17): require(‘/home/website…’) 20 {main}

    thrown in /home/website/public_html/wp-content/plugins/events-manager/classes/em-events.php on line 91

Viewing 3 replies - 1 through 3 (of 3 total)
  • This error is occurring due to a change in the latest plugin update. The variable $location_fields is referenced on line 91 of wp-content/plugins/events-manager/classes/em-events.php (in the function EM_Events::get) but the variable was not set prior to being referenced. Hopefully, @msykes will create a new plugin update that fixes this problem.

    Plugin Author Marcus

    (@msykes)

    Hello, sorry for the inconvenience 6.5.1 update released which will fix this.

    Thread Starter slewisma

    (@slewisma)

    Better but not perfect yet. Front-end, visitor experience works without error now but this just happened on one site:


    WordPress version 6.6.1
    Active theme: GeneratePress (version 3.4.0)
    Current plugin: Events Manager (version 6.5.1)
    PHP version 8.1.29 Error Details

    An error of type E_ERROR was caused in line 214 of the file /home/website/public_html/wp-content/plugins/events-manager/classes/em-list-table.php. Error message: Uncaught TypeError: array_key_exists(): Argument #1 ($key) must be a valid array offset type in /home/website/public_html/wp-content/plugins/events-manager/classes/em-list-table.php:214
    Stack trace: 0 /home/website/public_html/wp-content/plugins/events-manager/classes/em-list-table.php(214): array_key_exists(Array, Array) 1 /home/website/public_html/wp-content/plugins/events-manager/classes/em-bookings-table.php(176): EM\List_Table->__construct() 2 /home/website/public_html/wp-content/plugins/events-manager/admin/em-bookings.php(71): EM_Bookings_Table->__construct() 3 /home/website/public_html/wp-content/plugins/events-manager/admin/em-bookings.php(45): em_bookings_dashboard() 4 /home/website/public_html/wp-includes/class-wp-hook.php(324): em_bookings_page(”) 5 /home/website/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 6 /home/website/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 7 /home/website/public_html/wp-admin/admin.php(259): do_action(‘event_page_even…’) 8 /home/website/public_html/wp-admin/edit.php(10): require_once(‘/home/website…’) 9 {main}

    thrown

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.