Okay, something to add.

The courtesy lights do work when the doors are shut and the vehicle is running. When you open the doors they don't turn on.

So is that indicating a sensor or switch malfunction or could that still be a fuse problem???