Mine did the exact same thing after I got a gearbox fault. It was the transmissioin Control Module getting wet that caused all of it. But look up by the fuse box for moisture, if that stuff gets wet it throws every fault at you it can. Also get a blow drier, blow everything dry then reset the ODBII and see if that corrects everything. A tell tale sign with mine was putting the heater on full tilt and the windows were fogging. The carpets were dry by the way so it does not take much moisture, it has more to do with where the water goes.
Previously 2004 X-Type Sport Premium Estate, now Jagless.