I'm no expert, but I think this is a fairly common problem. The liner is torn and leaking or was not properly installed. Bust out, rebuild the pan and curb, retile. Also replace the rotted sub floor..