The year, make and model would help.
The dome light switch on the dash is on.
Put the dome light switch on door located on the headliner to the side of the light
A door switch may be broken or out of adjustment or the dome light switch on the dash is turned on.
THERE IS A CHANCE IF THE DOME LIGHT IS STAYING ON IT IS NOT THE THE DOOR SWITCH, BUT WORN DOOR HINGE BUSHINGS,
The door ajar switch is part of the latch, inside the door.
The door ajar switch is part of the latch inside the door.
You possibly have a shorted or broken switch on one of your doors. These work by earthing out when a door is openedThe manual dome light switch is on.More than likely it is the door switch. The switch is located in the door latch and the door panel must be removed to service.
By pass the door mode. The Dome light should have a 3 way switch OFF - Door open on - Constant on Move the switch to the off mode, and light should not come on when door is opened.
The switches for the dome light on each door of a 2004 Olds Alero are at the front of the door. They are on the door frame where the door meets the frame when it is closed. If the dome light is staying on, try checking the dome light control by the headlight switch, also. It may have gotten bumped when entering the vehicle.
on the side of the dash
The door jamb switch normally completes the power circuit to the dome lamp when the door is open. When the door is closed the switch opens the circuit, removing power from the dome light. If the switch is dirty, defective, stuck pushed in, or disconnected from the wiring, when the door is open the switch does not close the circuit and the dome light remains off as if the door is still closed. The headlight switch provides an "alternate path" to close the same circuit and allow power to the dome light. I had the same problem on a 1997 Chevy C1500 pickup truck.
Try opening and closing each door one at a time and wait for the dome light to go out before proceding to the next door..when u get to the door where the dome light stays on, that's the one with the bad door switch