Custom widgets do not appear in dashboard > appearance > widgets

The glob function is not supporting GLOB_BRACE on the host.
The code in functions.php can be replaced by

$widgets = glob(get_template_directory().'/widgets/*.php');
foreach ($widgets as $widget) {
    $className =  str_replace('.php', '', basename($widget) );
    include $widget;
}

to fix the issue.