Late 2008 13" MacBook not detecting brand new battery
I later deduced the problem to the logicboard. I bought a replacement board which successfully detected the same battery. I didn't bother testing the old battery. Strangely, the original board is perfect with the exception of the battery circuit.

The  issue could be the battery connector on the board or something more complicated.