The error is occurring in your view file but isn't being displayed on screen. To troubleshoot, add logging statements at potential error points:
log_message('error', 'Error message: ' . $e->getMessage());
Then check your logs in the writable/log/
directory to identify the specific issue.