Fixed PHP errors on server