Silence can't establish current session error

Upgrading from 1.7 to 1.8 caused an error in this line.