So, so true. Get the earth attached properly, and try again.
That wiring looks horrible, however. Were the wired just twisted together? In the wheel arch? That's never going to last. My trailer socket was wired in using chocolate block, which I thought was bad enough, but at least it was up...