Unable to complete initial configuration due to form error.

Created on 23 August 2023, almost 2 years ago

Problem/Motivation

I am unable to submit the Fastly General configuration form. When I do so, I receive the following error:
TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given in call_user_func() (line 275 of /app/web/core/lib/Drupal/Core/Render/Element/MachineName.php)

Steps to reproduce

1. Install and enable the Fastly module.
2. Enter the site id, API key and select a service.
3. Save configuration.
4. Error. Logs show:
TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given in call_user_func() (line 275 of /app/web/core/lib/Drupal/Core/Render/Element/MachineName.php)

Proposed resolution

I've seen this issue crop up in a number of modules. Generally, the issue is that there is a missing 'exists' handler for a form field of type machine_name. In this case, it looks like it's the site id field.

This is my first exposure to this module, so I'm not sure if I'm the one to create this fix.

Thank you!

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bgronek

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

Comments & Activities

Production build 0.71.5 2024