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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2023-06-19_20-53-54.png | 39.82 KB | rami.sedhom |
Issue fork business_rules-3332732
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
Comment #2
rami.sedhom commentedSame error here, the "Target Bundle" is not populated with any value whatever the "Target Entity Type" is.
Comment #3
rami.sedhom commentedComment #4
liquidcms commentedSame issue with generic D9.5 site.
Comment #5
roman_iglin commentedSame issue with D10.1.6
Comment #6
simonknight commentedUsing 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
Comment #9
silvi.addweb commentedI've created MR , Please review.