Drupal 7.73
CiviCRM 7.x-5.28.2

1.0 Problem/Motivation
In the Webform > Results tab, I get an error message if I click View or Download PDF. My screen shows "The website encountered an unexpected error. Please try again later."
Only local images are allowed.

In Drupal Logs is have the following:
MESSAGE Error: Call to undefined function wf_crm_field_options() in webform_civicrm_webform_submission_render_alter() (line 338 of .../sites/all/modules/webform_civicrm/webform_civicrm.module).
SEVERITY error

2.0 Detailed steps to reproduce (embed screenshots)
This is a Webform with CiviCRM active on it. In writing this up I just figured out that it happens on some submissions and not others in the same form. The difference seems to be that those that fail do not have any information for Contact 1. Those that work do have that field. And for some reason some of my forms almost always have that info and some of my forms seldom have that field. And others are mixed.
Only local images are allowed.

3.0 Proposed resolution

CommentFileSizeAuthor
WebformSubmissions.png133.53 KBIowaBoy
ScreenMessage.png202.32 KBIowaBoy

Comments

IowaBoy created an issue. See original summary.

colemanw’s picture

Status: Active » Closed (duplicate)

This was recently fixed and will be released shortly in v5.4.

IowaBoy’s picture

I still have this problem even after update to 5.4