The correct answer is D. No error.

The sentence is grammatically correct. The word "whenever" is used to introduce a clause that describes a condition that is always true. The word "must" is used to express a strong obligation. The word "put off" means to remove something from one's body. The word "shoes" refers to footwear. The word "at the entrance" refers to the place where one enters a building.

The sentence can be paraphrased as follows: "It is always necessary to remove your shoes when you enter a temple."