Zend certified PHP/Magento developer

Magento 2.4.6 on Nexcess – Address Validation Error

I updated my Magento site to CE 2.4.6 (from CE 2.4.5-p1) running on Nexcess. I’ve shipped to this address before so I know it’s valid and the shipping lookup works. It fails when I click “Next” to go the payments screen and the exception log is as follows:

[2023-03-31T15:30:20.177535+00:00] main.CRITICAL: MagentoFrameworkExceptionInputException: The address failed to save. Verify the address and try again. in /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/ShippingAddressManagement.php:122
Stack trace:
#0 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoQuoteModelShippingAddressManagement->assign(389364, Object(MagentoQuoteModelQuoteAddressInterceptor))
#1 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoQuoteModelShippingAddressManagementInterceptor->___callParent('assign', Array)
#2 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoQuoteModelShippingAddressManagementInterceptor->MagentoFrameworkInterception{closure}('389364', Object(MagentoQuoteModelQuoteAddressInterceptor))
#3 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/generated/code/Magento/Quote/Model/ShippingAddressManagement/Interceptor.php(23): MagentoQuoteModelShippingAddressManagementInterceptor->___callPlugins('assign', Array, Array)
#4 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingProcessor.php(66): MagentoQuoteModelShippingAddressManagementInterceptor->assign('389364', Object(MagentoQuoteModelQuoteAddressInterceptor))
#5 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingAssignmentProcessor.php(106): MagentoQuoteModelQuoteShippingAssignmentShippingProcessor->save(Object(MagentoQuoteModelShipping), Object(MagentoQuoteModelQuoteInterceptor))
#6 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingAssignmentPersister.php(34): MagentoQuoteModelQuoteShippingAssignmentShippingAssignmentProcessor->save(Object(MagentoQuoteModelQuoteInterceptor), Object(MagentoQuoteModelShippingAssignment))
#7 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/QuoteRepository/SaveHandler.php(145): MagentoQuoteModelQuoteShippingAssignmentShippingAssignmentPersister->save(Object(MagentoQuoteModelQuoteInterceptor), Object(MagentoQuoteModelShippingAssignment))
#8 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/QuoteRepository/SaveHandler.php(120): MagentoQuoteModelQuoteRepositorySaveHandler->processShippingAssignment(Object(MagentoQuoteModelQuoteInterceptor))
#9 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/generated/code/Magento/Quote/Model/QuoteRepository/SaveHandler/Interceptor.php(23): MagentoQuoteModelQuoteRepositorySaveHandler->save(Object(MagentoQuoteModelQuoteInterceptor))
#10 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/QuoteRepository.php(202): MagentoQuoteModelQuoteRepositorySaveHandlerInterceptor->save(Object(MagentoQuoteModelQuoteInterceptor))
#11 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoQuoteModelQuoteRepository->save(Object(MagentoQuoteModelQuoteInterceptor))
#12 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoQuoteModelQuoteRepositoryInterceptor->___callParent('save', Array)
#13 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoQuoteModelQuoteRepositoryInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoQuoteModelQuoteInterceptor))
#14 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/generated/code/Magento/Quote/Model/QuoteRepository/Interceptor.php(59): MagentoQuoteModelQuoteRepositoryInterceptor->___callPlugins('save', Array, Array)
#15 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-checkout/Model/ShippingInformationManagement.php(191): MagentoQuoteModelQuoteRepositoryInterceptor->save(Object(MagentoQuoteModelQuoteInterceptor))
#16 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCheckoutModelShippingInformationManagement->saveAddressInformation(389364, Object(MagentoCheckoutModelShippingInformation))
#17 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCheckoutModelShippingInformationManagementInterceptor->___callParent('saveAddressInfo...', Array)
#18 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/app/code/WeltPixel/GA4/Plugin/ServerSide/ShippingInformation.php(57): MagentoCheckoutModelShippingInformationManagementInterceptor->MagentoFrameworkInterception{closure}(389364, Object(MagentoCheckoutModelShippingInformation))
#19 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(135): WeltPixelGA4PluginServerSideShippingInformation->aroundSaveAddressInformation(Object(MagentoCheckoutModelShippingInformationManagementInterceptor), Object(Closure), 389364, Object(MagentoCheckoutModelShippingInformation))
#20 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/app/code/WeltPixel/GoogleTagManager/Plugin/ShippingInformation.php(53): MagentoCheckoutModelShippingInformationManagementInterceptor->MagentoFrameworkInterception{closure}(389364, Object(MagentoCheckoutModelShippingInformation))
#21 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(135): WeltPixelGoogleTagManagerPluginShippingInformation->aroundSaveAddressInformation(Object(MagentoCheckoutModelShippingInformationManagementInterceptor), Object(Closure), 389364, Object(MagentoCheckoutModelShippingInformation))
#22 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/app/code/WeltPixel/GA4/Plugin/ShippingInformation.php(61): MagentoCheckoutModelShippingInformationManagementInterceptor->MagentoFrameworkInterception{closure}(389364, Object(MagentoCheckoutModelShippingInformation))
#23 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(135): WeltPixelGA4PluginShippingInformation->aroundSaveAddressInformation(Object(MagentoCheckoutModelShippingInformationManagementInterceptor), Object(Closure), 389364, Object(MagentoCheckoutModelShippingInformation))
#24 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCheckoutModelShippingInformationManagementInterceptor->MagentoFrameworkInterception{closure}(389364, Object(MagentoCheckoutModelShippingInformation))
#25 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/generated/code/Magento/Checkout/Model/ShippingInformationManagement/Interceptor.php(23): MagentoCheckoutModelShippingInformationManagementInterceptor->___callPlugins('saveAddressInfo...', Array, NULL)
#26 [internal function]: MagentoCheckoutModelShippingInformationManagementInterceptor->saveAddressInformation(389364, Object(MagentoCheckoutModelShippingInformation))
#27 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)
#28 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-webapi/Controller/Rest.php(202): MagentoWebapiControllerRestSynchronousRequestProcessor->process(Object(MagentoFrameworkWebapiRestRequestProxy))
#29 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(58): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))
#30 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(138): MagentoWebapiControllerRestInterceptor->___callParent('dispatch', Array)
#31 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoWebapiControllerRestInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))
#32 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): MagentoWebapiControllerRestInterceptor->___callPlugins('dispatch', Array, Array)
#33 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/App/Http.php(116): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#34 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): MagentoFrameworkAppHttp->launch()
#35 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/framework/App/Bootstrap.php(264): MagentoFrameworkAppHttpInterceptor->launch()
#36 /chroot/home/a38cb886/5dae601e98.nxcli.io/html/pub/index.php(30): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
#37 {main} {"exception":"[object] (Magento\Framework\Exception\InputException(code: 0): The address failed to save. Verify the address and try again. at /chroot/home/a38cb886/5dae601e98.nxcli.io/html/vendor/magento/module-quote/Model/ShippingAddressManagement.php:122)"} []

Any help or thoughts? I can’t process orders so I’m stuck.

Thanks.

Some additional answers:

Hi Tu, here’s what they have:

     public function aroundSaveAddressInformation(
MagentoCheckoutModelShippingInformationManagement $subject,
Closure $proceed,
$cartId,
$addressInformation
) {
$result = $proceed($cartId, $addressInformation);
if (!$this->ga4Helper->isServerSideTrakingEnabled() || !$this->ga4Helper->shouldEventBeTracked(WeltPixelGA4ModelConfigSourceServerSideTrackingEvents::EVENT_ADD_SHIPPING_INFO)) {
return $result;
}
/** @var MagentoQuoteModelQuote $quote */
$quote = $this->quoteRepository->getActive($cartId);
$shippingDescription = $quote->getShippingAddress()->getShippingDescription();
$addShippingInfoEvent = $this->addShippingInfoBuilder->getAddShippingInfoEvent($quote, $shippingDescription);
$this->ga4ServerSideApi->pushAddShippingInfoEvent($addShippingInfoEvent);
return $result;
}

I’ll post more on the second comment in a few minutes.

Thank you!