Error thrown

Call to undefined method stdClass::get_rest_controller()