- 🇩🇪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.
- 🇮🇱Israel jsacksick
Shouldn't that be a commerce_shipping issue? I don't see commerce in the stracktrace though...
- 🇩🇪Germany Anybody Porta Westfalica
Thanks @jsacksick sorry I didn't see that! Moved over to Commerce Shipping!
Seeing similar issue.
After trying to edit the address the following error message appears:
Oops, something went wrong. Check your browser's developer console for more details.Checking to developer console shows the following error message
Drupal.AjaxError
message
:
"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /checkout/5226/order_information?ajax_form=1\nStatusText: error\nResponseText: The website encountered an unexpected error. Try again later."
name
:
"AjaxError"Looking to the dblog shows the following error:
Warning: Trying to access array offset on null in Drupal\commerce_shipping\Plugin\Commerce\Condition\ShipmentWeight->evaluate() (line 138 of mysite/modules/contrib/commerce_shipping/src/Plugin/Commerce/Condition/ShipmentWeight.php)