MacBook Pro only Charging when Turned Off
I had the same problem and have tried everything, with no result. Suddenly, I reset the SMC without turning off the MacBook Pro, i.e. with the MBP on and the charger plugged, I hit Shift+Ctrl+Alt+ON for ten seconds (the MBP switches off instantaneously). After restarting, the mac was charging properly.