Radio and dome light.

I have a 2003 F-250 4x4 lariat 6.8l crew cab. All of the sudden when shutting off the engine and opening the driver and/or passenger door, the radio will not turn off and the dome light does not come on. If I open one of the rear doors, the dome light comes on but the radio does not shut off. The radio will eventually turn off after 10-15 or so. Dome light comes on when I turn off the ignition, but will turn off whether I have the door open or not. I seems like a switch, but both passenger and driver door are not working. I tried spraying wd40d into the latch with no change to issue. Any ideas what I should do to fix the issue?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0