I've seen this before, somehow crm 'lost' the document management settings on an entity, check that document management is configured for the entity in settings, and simply run through the document management setup wizard (at least that worked for us)