Error: Call to undefined function template_preprocess_webform_element_managed_file()

Created on 9 January 2024, 11 months ago
Updated 20 May 2024, 6 months ago

Problem/Motivation

Attempt to access a webform submission containing a dropzonejs field results in the following error

Error: Call to undefined function template_preprocess_webform_element_managed_file() in template_preprocess_webform_element_dropzonejs() (line 31 of modules/contrib/dropzonejs_webform/webform_dropzonejs.module).

Steps to reproduce

1. Complete a webform containing a dropzonejs field.
2. Attempt to access the submission at /admin/structure/webform/manage/{webform_id}/results/submissions
3. Encounter error.

Proposed resolution

Find out why the 'undefined function' which is defined in the webform module is not being recognised. Increasing the weight of the webformdropzone_js module in the core.extension.yml to ensure the webform module is implemented first solves this error.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom sabrina.liman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024