Originally Posted by Pirateghost
Try cleaning your USB port on the phone with some alcohol
Thanks Pirateghost. I tried but it didn't work. I'm more and more convinced there's something wrong with the hardware. Maybe I dropped it one too many times. It was just a strange coincidence and really bad luck that I realized it didn't work just after the problem installing a new ROM.
Anyways, I ordered a replacement for the PCB that holds the microusb connector. Let's hope that works.