Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1: Unable to access widgets screen #1418

Open
dd32 opened this issue Mar 28, 2023 · 1 comment · Fixed by #1422
Open

PHP 8.1: Unable to access widgets screen #1418

dd32 opened this issue Mar 28, 2023 · 1 comment · Fixed by #1422
Labels
compatibility PHP or WordPress version compatibility related issue php Pull requests that update Php code

Comments

@dd32
Copy link
Contributor

dd32 commented Mar 28, 2023

Bug Report

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

Call stack:
array_merge()
call_user_func_array()
wp-content/plugins/stream/connectors/class-connector-widgets.php:300
WP_Stream\Connector_Widgets::handle_widget_removal()
wp-content/plugins/stream/connectors/class-connector-widgets.php:178
WP_Stream\Connector_Widgets::handle_sidebars_widgets_changes()
wp-content/plugins/stream/connectors/class-connector-widgets.php:144
WP_Stream\Connector_Widgets::callback_update_option_sidebars_widgets()
call_user_func_array()
wp-content/plugins/stream/classes/class-connector.php:127
WP_Stream\Connector::callback()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/option.php:570
update_option()
wp-includes/widgets.php:1090
wp_set_sidebars_widgets()
wp-includes/widgets.php:1357
retrieve_widgets()
wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php:298
WP_REST_Sidebars_Controller::retrieve_widgets()
wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php:97
WP_REST_Sidebars_Controller::get_items_permissions_check()
wp-includes/rest-api/class-wp-rest-server.php:1148
WP_REST_Server::respond_to_request()
wp-includes/rest-api/class-wp-rest-server.php:1028
WP_REST_Server::dispatch()
wp-includes/rest-api.php:535
rest_do_request()
wp-includes/rest-api.php:2889
rest_preload_api_request()
array_reduce()
wp-includes/block-editor.php:634
block_editor_rest_api_preload()
wp-admin/widgets-form-blocks.php:26
require()
wp-admin/widgets.php:32

Expected Behavior

Describe what should happen.

Actual Behavior

Describe what actually happens.

Steps to Reproduce the Problem

Screenshots

Screenshot 2023-03-28 at 3 17 38 pm

Drag and drop screenshots in this area that help illustrate the problem.

System Information

  • Stream plugin version:
  • WordPress version:
  • PHP version:
  • Browser:
  • Computer operating system:
@kasparsd kasparsd added compatibility PHP or WordPress version compatibility related issue php Pull requests that update Php code labels Apr 11, 2023
@kasparsd kasparsd mentioned this issue Apr 11, 2023
10 tasks
@kasparsd kasparsd reopened this Apr 11, 2023
@kasparsd
Copy link
Contributor

Possibly related to #1355 and #1294.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility PHP or WordPress version compatibility related issue php Pull requests that update Php code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants