Try cleaning the connections and make sure you lock the door after inserting the battery.
If it is the original battery, it could just be not holding a charge anymore. Take the camera into a store that sells Pentax. They won't have the W10 but should have a W30 or W60. Ask them if you can try the battery from their demo model in your camera.
Maybe that's why your daughter gave it to you.
