Contribution Summary throws 500 error
This appears to be identical to CRM-20558.  Upgrading to 4.7.20 or applying the fix there should solve your problem.  Note that CiviCRM is not tested against PHP 7.1, so you may want to consider using PHP 7.0 instead.