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."
![]()
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.
![]()
3.0 Proposed resolution
| Comment | File | Size | Author |
|---|---|---|---|
| WebformSubmissions.png | 133.53 KB | IowaBoy | |
| ScreenMessage.png | 202.32 KB | IowaBoy |
Comments
Comment #2
colemanw commentedThis was recently fixed and will be released shortly in v5.4.
Comment #3
IowaBoy commentedI still have this problem even after update to 5.4