Problem/Motivation

When I select the Target Entity type as Content Then nothing is updated in the Target bundle and getting this error

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/config/workflow/business_rules/add?ajax_form=1
StatusText: Internal Server Error
ResponseText: The website encountered an unexpected error. Please try again later.Symfony\Component\HttpKernel\Exception\HttpException: The specified #ajax callback is empty or not callable. in Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (line 67 of core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php). Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException(Object, 'kernel.exception', Object)
call_user_func(Array, Object, 'kernel.exception', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.exception') (Line: 229)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object, Object, 1) (Line: 92)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Just enable the Business_rule module and add a new rule

Proposed resolution

It should not render the ajax error and. and the dependent field(Target Bundle) should be successfully updated.

CommentFileSizeAuthor
#3 2023-06-19_20-53-54.png39.82 KBrami.sedhom
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

shakilahmad created an issue. See original summary.

rami.sedhom’s picture

Same error here, the "Target Bundle" is not populated with any value whatever the "Target Entity Type" is.

screenshot

rami.sedhom’s picture

StatusFileSize
new39.82 KB
liquidcms’s picture

Same issue with generic D9.5 site.

roman_iglin’s picture

Same issue with D10.1.6

simonknight’s picture

Using this module for dependent fields doesn't work either with a similar 500 error. Drupal 10.2.6

Ignore this comment please. I'm using 3.0.0-beta1

silvi.addweb made their first commit to this issue’s fork.

silvi.addweb’s picture

Status: Active » Needs review

I've created MR , Please review.