[2.0.6] #ajax callback is empty or not callable

Created on 21 June 2025, about 2 months ago

Problem/Motivation from @yannickoo

Have you ever encountered that ui patterns is messing up things with the ajax callbacks? that screenshot is from "manage display" where i use a field group to map the fields

Symfony\Component\HttpKernel\Exception\HttpException: The specified #ajax callback is empty or not callable. in Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (line 67 of /var/www/html/docroot/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php).

that's everything i see in the logs, time to start xdebug...

that's my prop:

   url:
      title: URL
      $ref: "ui-patterns://url"

in the UI is something buggy, especially when using Component field group plugin and then trying to use:

  • Data from a field
  • Link
  • Field prop: URI :arrow_left: when selecting that i get the error message after the ajax callback

then the form looks like that but when clicking Update i get this:

a random field formatter settings form appears from somewhere else

Proposed resolution

This issue may belong to https://www.drupal.org/project/ui_patterns_field_group because Yannick told us he "use a field group to map fields"

However the #AJAX error is a recurrent subject, happening from time to time (sometimes in https://www.drupal.org/project/display_builder ) , but never clearly identified and fixed, so this is the opportunity to investigate it at UI Patterns 2 main module level.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

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

Comments & Activities

Production build 0.71.5 2024