TypeError: call_user_func():

Created on 6 September 2022, over 2 years ago
Updated 31 May 2023, over 1 year ago

Hi there.

On Drupal 9.4.5 and PHP 8.0.21 we are not able to add a signup form.
Under /admin/config/system/sendinblue/sendinblue_signup_form/add we get

TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given in call_user_func() (Zeile 275 in /var/www/html/core/lib/Drupal/Core/Render/Element/MachineName.php)

Any ideas about that?

Thanks

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany netzkombuese

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France PhilY πŸ‡ͺπŸ‡ΊπŸ‡«πŸ‡· Paris, France

    Same error using Drupal 9.5.3, PHP 8.1.6

  • πŸ‡«πŸ‡·France Attraktive

    Same error... using Drupal 9.5.3 and PHP 8.1.4

  • Status changed to Needs review over 1 year ago
  • The error is caused by the inexistence of the '#machine_name' => ['exists' => 'EntityClass::method'] array key, which should point to the class method that can be used to ensure that the machine name isn't duplicated.

    Attached a patch that fixes the issue.

Production build 0.71.5 2024