Fatal errors after update to 6.5
-
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
- You must be logged in to reply to this topic.