Fixed #979: Bug - Unable to login to the panel and error 500 for any PHP site