Before upgrading the door, you have to upgrade the adjoining floor. For a door made of planks you need floor made of planks too, the same applies to a stone door.