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.

In the logs:

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).

I can also try to store the configuration somehow and it looks good in frontend, just the form is weird.

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 >> 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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pdureau created an issue. See original summary.

pdureau’s picture

Issue summary: View changes
pdureau’s picture

Issue summary: View changes

pdureau credited yannickoo.

pdureau’s picture

pdureau’s picture

Issue tags: +BarCampPerpignan2025
pdureau’s picture

Assigned: pdureau » Unassigned
pdureau’s picture

Assigned: Unassigned » just_like_good_vibes
Priority: Normal » Major

Expected for Display Builder.

pdureau’s picture

pdureau’s picture

It is easy to reproduce the same error on Display Builder: with display builder entity view, take the article tags field, compoenet per item, a component, and boom!

just_like_good_vibes made their first commit to this issue’s fork.

pdureau’s picture

Title: [2.0.6] #ajax callback is empty or not callable » [2.0.7] #ajax callback is empty or not callable
pdureau’s picture

Title: [2.0.7] #ajax callback is empty or not callable » [2.0.8] #ajax callback is empty or not callable
just_like_good_vibes’s picture

Title: [2.0.8] #ajax callback is empty or not callable » [2.0.9] #ajax callback is empty or not callable
just_like_good_vibes’s picture

Title: [2.0.9] #ajax callback is empty or not callable » [2.0.10] #ajax callback is empty or not callable
pdureau’s picture

Title: [2.0.10] #ajax callback is empty or not callable » [2.0.11] #ajax callback is empty or not callable
just_like_good_vibes’s picture

Assigned: just_like_good_vibes » pdureau
Status: Active » Needs work

Is it still up-to-date or should we close it?

pdureau’s picture

Title: [2.0.11] #ajax callback is empty or not callable » #ajax callback is empty or not callable
Assigned: pdureau » Unassigned
Status: Needs work » Postponed (maintainer needs more info)

I have another issue doing the same steps:

with display builder entity view, take the article tags field, compoenet per item, a component, and boom!

I will create an issue in Display Buildeer issue queue. I don't know the status of the current one.

just_like_good_vibes’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.