I was having the same problem. Got if fixed by this below:
Changes on the line 62 from add_action("widgets_init", function () { register_widget("MetarWidget"); });
to: `add_action(‘widgets_init’, register_metarwidget’);
function register_metarwidget() {
register_widget(“metarwidget”);
}`