Fixed the bastard dodgy plug and socket under the tank that caused me to breakdown at work yesterday had broken down once before a few weeks ago (no ignition lights everything dead) but tweaked all plugs and sockets near battery and it all came back on, cleaned em all in switch cleaner and thought job was a good un, (until last night) if you have a older bike, mine is 2002 gen 1 Fazer 1000, it might be as well to do a bit of preventive maintenance under the tank
The Foxeye FZS600 (Maybe Boxeye as well) has a multi-pin plug and socket under the left hand side fairing infill panel (White colored unit) I lost all lights at one point, but, turn off ignition and they came back on, the bike manifested this problem for a couple of weeks but as I don't ride at night very often it was not so much of a problem, although I like the dipped headlights on whilst riding at any time of the day.
I had to use the bike one night and whilst riding down an unfamiliar county lane I was thrown into complete darkness, fortunately enough I had just gone round a sharp left hander that had gravel in the center of the lane so was down to about 15-20 MPH when it went black, so was able to stop before coming to grief.
The problem was the aforementioned white Multi connector under the L/H side fairing infill panel, water had been getting into it and had caused the pins to corrode on half of the joints, I cut the wires tight to each side of the connector on the corroded pins, bared about 15mm of wire on each pair slipped small bore heat shrink on each pair of wires twisted and soldered the wires together slipped the heat shrink over the solder joint (When it completely cooled) played a gas fag lighter over the joints and Bob is your uncle.
I only did this to the corroded pairs, I spayed the connector liberally with WD 40 pushed them back together and held the 2 halves tight together with a couple on long cable ties, that was 2 years ago and it has never caused another problem.