*8996* Porting stats fixes

this is true, but those methods can only work based on the base_url configuration. If some installation is using ports, it should add it in the base_url config setting. If they add, the system will work fine, tested here.