Could be a broken wire within the wiring loom at the bottom of the door.
I had the same problem where the lights would come on and off.
Probably caused by continual flexing of wiring at bottom of door through opening & closing
Angus Brunton, January 2009