Try this first
Something was in the way
The door has to close all the way before the hooks can catch. A tray that isn't seated, or a dish that sticks out, holds it open slightly, and the microwave treats it as open.
- Take out the dish, then reseat the roller ring and the glass tray so the tray drops onto its hub.
- Remove any packing material from inside the door and the oven.
- Close the door. It should latch with a firm click and sit flat.

