Sounds like a duff earth.
Try running a temp earth from a shiney screwhead on tailgate to a shiney earth on body or straight to battery neg post if you can.
Carl
have a look at the connection between the door and body of car, if theres a cut/graze in wires repair with some crimp connections and a bit of spare wire!