I am getting the same error, this was not a problem before the recent update to the widget.
Thank you very much for your help, it worked perfectly. And for anyone else who needs this information, paste the above codes into the bottom of the functions.php file and it will work. Another one I would add is the following as sometimes the request is category_name and other times it is simply cat. But otherwise it is perfect.
function any_ptype_on_cate($request) {
if ( isset($request['cat']) )
$request['post_type'] = 'any';
return $request;
}
add_filter('request', 'any_ptype_on_cate');