AJAX error when editing shipping address

Created on 31 October 2022, about 2 years ago
Updated 21 December 2024, about 17 hours ago

Hello, I have an issue with Commerce module. When I try to edit once inserted shipping address nothing happens. This error appears in the log:
Symfony\Component\HttpKernel\Exception\HttpException: The specified #ajax callback is empty or not callable. v Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (line 67 file /srv/http/drupalcommerce/web/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php).

I have this error on my local server as well as on live server. I am running Drupal 9.4.8 with Commerce 8.x-2.32, PHP 8.1.11, MariaDB 10.9.3.

🐛 Bug report
Status

Active

Version

2.40

Component

Checkout

Created by

🇨🇿Czech Republic pavlina1979 Prague

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.

  • 🇩🇪Germany Anybody Porta Westfalica

    I can sadly confirm this with latest 8.x-2.40 on latest Drupal 10.

    Some more details from the logs:

    Location: /checkout/2986/order_information?_wrapper_format=drupal_ajax&ajax_form=1
    Referrer: /checkout/2986/order_information
    #0 /web/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(112): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
    #1 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
    #2 /web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
    #3 /vendor/symfony/http-kernel/HttpKernel.php(239): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
    #4 /vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
    #5 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
    #6 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
    #7 /web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
    #8 /web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
    #9 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
    #10 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
    #11 /web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
    #12 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
    #13 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
    #14 /web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
    #15 /web/modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState->handle()
    #16 /web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle()
    #17 /web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
    #18 /web/index.php(19): Drupal\Core\DrupalKernel->handle()
    #19 {main}

    Maybe an AJAX callback has a missing "static"?
    See https://julian.pustkuchen.com/en/external-drupal-ajax-callback-methods-m...

    Hope I'll find some time for further investigations.

    Seems to happen in regular customer checkout.

Production build 0.71.5 2024