Gutenberg widgets block editor is a mess of errors
-
The new Gutenberg widgets block editor that was included with Gutenberg 9.0.0 had lots of problems which have now gotten worse since the update to 9.1.0.
1. My theme has 13 registered widget areas (side bars). The new widget block editor only shows the first 9 of them.
2. I use a plugin (Widget CSS Classes) which adds a custom class field to all widgets. The custom class field is not displayed by the new block widget rendering.
3. I have an unused HTML widget parked in Inactive Widgets. In Gutenberg 9.0.0 this caused the following errors:
PHP Notice: Undefined index: before_widget in \wp-includes\widgets\class-wp-widget-custom-html.php on line 168
PHP Notice: Undefined index: before_title in \wp-includes\widgets\class-wp-widget-custom-html.php on line 172
PHP Notice: Undefined index: after_title in \wp-includes\widgets\class-wp-widget-custom-html.php on line 172
PHP Notice: Undefined index: after_widget in \wp-includes\widgets\class-wp-widget-custom-html.php on line 177The Inactive Widget Block Area is obviously not defining these entries, yet the WP_Widget_Custom_HTML class’ widget method is expecting them in its $args parameter.
4. The following php warning is being generated multiple times when the widget block editor is loaded:
PHP Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access private method WP_REST_Widget_Utils_Controller::is_valid_widget() in \wp-includes\rest-api\class-wp-rest-request.php on line 898
5. In 9.1.0 when I try Preview a widget, instead of the seeing the rendered widget, I see this:
PHP Fatal error: Uncaught Error: Call to a member function render() on null in \wp-content\plugins\gutenberg\lib\widget-preview-template.php:37
When is the development team going to do some proper testing before they inflict this badly coded plugin on users?
Seems to be still experimental, so I’m pulling the plug on the new Gutenberg widget blocks until I see some real progress towards fixing it.
- The topic ‘Gutenberg widgets block editor is a mess of errors’ is closed to new replies.