Mainwp child reports error on Bedrock setup only with php8.1

Only on Bedrock structured sites I get a E_ERROR on mainwp child reports plugin and using php 8.1.
When trying to edit a widget, saving works fine, but deleting the widget results in an fatal error of wp-admin-ajax.

Tested this under php 7.4 and there is no problem. Also switched of all other plugins and default wp theme,m but under php 8.1 when deleting a widget always this error. Hope you can help.

WordPress version 6.1.1
Current plugin: MainWP Child Reports (version 2.0.8)
PHP version 8.1.12

Error details

An error of type E_ERROR on line number 303 of the file /home/hiddendomain/domains/hiddendomain.nl/public_html/web/app/plugins/mainwp-child-reports/connectors/class-connector-widgets.php. Foutmelding: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /home/hiddendomain/domains/hiddendomain.nl/public_html/web/app/plugins/mainwp-child-reports/connectors/class-connector-widgets.php:303
Stack trace:
#0 [internal function]: array_merge()
#1 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/app/plugins/mainwp-child-reports/connectors/class-connector-widgets.php(303): call_user_func_array()
#2 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/app/plugins/mainwp-child-reports/connectors/class-connector-widgets.php(181): WP_MainWP_Stream\Connector_Widgets->handle_widget_removal()
#3 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/app/plugins/mainwp-child-reports/connectors/class-connector-widgets.php(147): WP_MainWP_Stream\Connector_Widgets->handle_sidebars_widgets_changes()
#4 [internal function]: WP_MainWP_Stream\Connector_Widgets->callback_update_option_sidebars_widgets()
#5 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/app/plugins/mainwp-child-reports/classes/class-connector.php(92): call_user_func_array()
#6 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-includes/class-wp-hook.php(308): WP_MainWP_Stream\Connector->callback()
#7 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#8 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-includes/option.php(554): do_action()
#10 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-includes/widgets.php(1090): update_option()
#11 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-includes/widgets.php(1357): wp_set_sidebars_widgets()
#12 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-admin/widgets-form.php(121): retrieve_widgets()
#13 /home/hiddendomain/domains/hiddendomain.nl/public_html/web/wp/wp-admin/widgets.php(34): require(‘/home/hiddendo…’)
#14 {main}
thrown

Hey @mwp-haha-hrbrt-com

Thank you for reaching out and reporting this.

Can you please try the Child Reports version from this link and see if it resolves the issue: Dropbox - mainwp-child-reports.zip - Simplify your life

1 Like

Great! Thats seems to be working fine now with this version.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.