This is probably an old chestnut, but I have not overcome yet. I picked up a CIJ Jag bass guitar which has had a rough time in its previous life. I removed the neck, and looked at the prospect of giving it a coat of paint to restore to original condition. I filled the holes and dents with auto body filler ( yes they were that bad) and resprayed with a coat of auto acrylic black, which was the original color. The wiring looked a bit daunting for a nubie to tackle, so I removed the pick guard and control plates and made a small pile of electronics and masked them up ready for painting. The result turned out great, the only problem I have now is the earth loop, I downloaded the wiring diagram and every thing is correct no loose connections. This was there before painting, but I thought I would solve the problem later.
Has anyone any suggestions on what to check, I have ordered some conductive paint to see if that fixes it.