Hello

I am using wordpress 6.1.1. running with php8.1

I create a simple theme. When clicking "preview" I get this error.

ArgumentCountError thrown
Too few arguments to function WP_Widget::__construct(), 0 passed in /.wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected

Any advices are welcome.

Hello I am using wordpress 6.1.1. running with php8.1 I create a simple theme. When clicking "preview" I get this error. ArgumentCountError thrown Too few arguments to function WP_Widget::__construct(), 0 passed in /.wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected Any advices are welcome.