• Hello! I am using Stream (3.8.2) in combination with Max Mega Menu (2.9.5) – https://www.megamenu.com/. WordPress Core is 5.8.3, PHP is 8.0.

    When I try certain updates with the Mega Menu in the WP backend, it fails. When I look at the error log, Stream is throwing an PHP error (error below).

    I have tried excluding all widget actions in Stream with no change. If I disable the Stream plugin, Mega Menu updating works perfectly. Any help is appreciated!

    Error:
    PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in *redacted*/wp-content/plugins/stream/connectors/class-connector-widgets.php:300

    Stack trace:
    #0 [internal function]: array_merge(wp_inactive_widgets: Array, be-foundations-sidebar: Array, primary-widget-area: Array, mega-menu: Array)
    #1 *redacted*/wp-content/plugins/stream/connectors/class-connector-widgets.php(300): call_user_func_array(‘array_merge’, Array)
    #2 *redacted*/wp-content/plugins/stream/connectors/class-connector-widgets.php(178): WP_Stream\\Connector_Widgets->handle_widget_removal(Array, Array)
    #3 *redacted*/wp-content/plugins/stream/connectors/class-connector-widgets.php(144): WP_Stream\\Connector_Widgets->handle_sidebars_widgets_changes(Array, Array)
    #4 [internal function]: WP_Stream\\Connector_Widgets->callback_update_option_sidebars_widgets(Array, Array, ‘sidebars_widget…’)
    #5 *redacted*/wp-content/plugins/stream/classes/class-connector.php(127): call_user_func_array(Array, Array)
    #6 *redacted*/wp-includes/class-wp-hook.php(303): WP_Stream\\Connector->callback(Array, Array, ‘sidebars_widget…’)
    #7 *redacted*/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #8 *redacted*/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #9 *redacted*/wp-includes/option.php(521): do_action(‘update_option_s…’, Array, Array, ‘sidebars_widget…’)
    #10 *redacted*/wp-includes/widgets.php(1057): update_option(‘sidebars_widget…’, Array)
    #11 *redacted*/wp-content/plugins/megamenu/classes/widget-manager.class.php(1337): wp_set_sidebars_widgets(Array)
    #12 *redacted*/wp-content/plugins/megamenu/classes/widget-manager.class.php(1272): Mega_Menu_Widget_Manager->set_mega_menu_sidebar_widgets(Array)
    #13 *redacted*/wp-content/plugins/megamenu/classes/widget-manager.class.php(1007): Mega_Menu_Widget_Manager->add_widget_to_sidebar(‘block’, 2)
    #14 *redacted*/wp-content/plugins/megamenu/classes/widget-manager.class.php(313): Mega_Menu_Widget_Manager->add_widget(‘block’, 35652, ‘Block’, true)
    #15 *redacted*/wp-includes/class-wp-hook.php(303): Mega_Menu_Widget_Manager->ajax_add_widget(”)
    #16 *redacted*/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #17 *redacted*/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #18 *redacted*/wp-admin/admin-ajax.php(187): do_action(‘wp_ajax_mm_add_…’)
    #19 {main} thrown in *redacted*/wp-content/plugins/stream/connectors/class-connector-widgets.php on line 300, referer: https://*redacted*/wp-admin/nav-menus.php?action=edit&menu=258

  • The topic ‘Stream error – array_merge() does not accept unknown named parameters’ is closed to new replies.