Error thrown

Class 'WP_Widget_Factory' not found