The battery charge circuit is in the laptop on the motherboard. Unless it's the old battery issue (anything over 2 years old) 99% of the time this takes a new motherboard.
You write you replaced the battery. It's possible that is bad or the old battery was not replaced soon enough.
Try this. Leave out the battery and ... does that work?
My Toshiba Satellite L300 runs ok with battery only, but when the AC adapter is switched on, the battery will not charge. The power and battery LEDs flash along with the battery icon. I am also getting a soft ticking sound from the LH side of the laptop. I have replaced the battery (which was on its last legs) and checked the voltage to be 19v from the AC adapter. Any advice gratefully received!