2007 Pontiac g5. Car starts fine, but won’t allow me to shift into drive for 2-5 minutes, and then it shifts perfectly fine. During that 2-5 minutes, the doors make a locking and unlocking sound at random intervals, anywhere from every .5 second to 10 seconds.
I don’t know if that’s the case, but some cars don’t let you shift into drive or reverse (or unlock the parking brake) if there’s a door open. Even if they’re physically closed, there could be some problem and the module getting a door open signal.