Chosen Solution

I have been charging my iPhone for over a year with my charger but now it won’t accept it?

Try changing battery and dock flex cable. If nothing worked, you burned U2 IC on mother board if you had used fake china iPhone usb charger.