After core commit 11.x-dev#7e27c7f can no longer save field definitions

Created on 1 August 2025, 12 days ago

Problem/Motivation

Creating/editing a field and clicking save appears to do nothing. The log contains a php error.

Steps to reproduce

1. Upgrade core to 11.x-dev, up to commit 7e27c7f or later.
2. Create a webform. Add a textfield.
3. Just give it a name and click save.
4. Nothing happens and the log has an error - Error: Call to undefined function Drupal\webform\Hook\_webform_token_render_more() in Drupal\webform\Hook\WebformTokensHooks->tokenInfo() (line 205 of ...\web\modules\contrib\webform\src\Hook\WebformTokensHooks.php).

Proposed resolution

If I add require_once __DIR__ . '/webform.tokens.inc'; near the top of webform.module, it fixes it, but it doesn't feel like the right solution. If somebody understands better what's going on in https://www.drupal.org/project/drupal/issues/3494908 πŸ“Œ [pp-1] Mark several more modules as converted Active maybe they have a better idea of what to do.

My guess is that before that commit, it somehow magically loaded webform.tokens.inc, but since that commit maybe changes how scanning works it now needs to be told about it, probably in the hook implementation somehow?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

6.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024