Original post by: Minho ,
You likely have a damaged charge circuit on the logic board. This can be damaged by using non-original chargers and cables (or worse, car chargers). It can also be caused by drops or just plain spontaneous failure. Normally this would require a micro-soldering repair and is not DIY. However, aftermarket batteries and small parts are notorious for poor poor quality so it is possible that you have a defective replacement charge port.