skip to Main Content

We’re in the process of upgrading Magento from 2.4.2 to 2.4.6

We have everything working except the eWay payement gateway.

Payments are processed as normal but after the payment is made the customer is redirected to an empty cart page with the error:

no such entity with cartid XXX

All other payment gateways work i.e. PayPal, ZIP, credit memo etc.

Looks like this is an issue with the official eway module but they will not offer any support.

error from logs below with stack trace

Any help to debug this would be greatly appreciated.

Have already tried everything online that references the error code but looks like lots of different issues can cause this code to pop up.

We had Mageplaza smtp and this is now also disabled as one post referanced this as a possible.

Thanks in advance

Site spec
Magento 2.4.6
Php 8.1

Tried placing order

Expected to land on Magento success page

Actually landed on empty cart page with error message no such entity with cartid XXX

main.CRITICAL: Placing an order with quote_id 7kwrwEc19cYADHzoyLPvlMYVwCkg1Poc is failed: No such entity with cartId = 37572 [] []

Stack trace:
#0 //vendor/magento/framework/Exception/NoSuchEntityException.php(36): MagentoFrameworkAppErrorHandler->handler()
#1 //vendor/magento/module-gift-message/Model/OrderRepository.php(93): MagentoFrameworkExceptionNoSuchEntityException->__construct()
#2 //vendor/magento/module-gift-message/Model/Plugin/OrderGet.php(87): MagentoGiftMessageModelOrderRepository->get()
#3 //vendor/magento/module-gift-message/Model/Plugin/OrderGet.php(66): MagentoGiftMessageModelPluginOrderGet->getOrderGiftMessage()
#4 //vendor/magento/framework/Interception/Interceptor.php(146): MagentoGiftMessageModelPluginOrderGet->afterGet()
#5 //vendor/magento/framework/Interception/Interceptor.php(153): MagentoSalesModelOrderRepositoryInterceptor->MagentoFrameworkInterception{closure}()
#6 //generated/code/Magento/Sales/Model/OrderRepository/Interceptor.php(23): MagentoSalesModelOrderRepositoryInterceptor->___callPlugins()
#7 //vendor/magento/module-sales/Block/Order/Email/Items.php(66): MagentoSalesModelOrderRepositoryInterceptor->get()
#8 //var/view_preprocessed/pub/static/vendor/magento/module-sales/view/frontend/templates/email/items.phtml(1): MagentoSalesBlockOrderEmailItems->getOrder()
#9 //vendor/magento/framework/View/TemplateEngine/Php.php(71): include(‘/home/988668.cl…’)
#10 //vendor/magento/framework/View/Element/Template.php(263): MagentoFrameworkViewTemplateEnginePhp->render()
#11 //vendor/magento/framework/View/Element/Template.php(293): MagentoFrameworkViewElementTemplate->fetchView()
#12 //vendor/magento/framework/View/Element/AbstractBlock.php(1095): MagentoFrameworkViewElementTemplate->_toHtml()
#13 //vendor/magento/framework/View/Element/AbstractBlock.php(1099): MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}()
#14 //vendor/magento/framework/View/Element/AbstractBlock.php(660): MagentoFrameworkViewElementAbstractBlock->_loadCache()
#15 //vendor/magento/framework/View/Layout.php(578): MagentoFrameworkViewElementAbstractBlock->toHtml()
#16 //vendor/magento/framework/View/Layout.php(555): MagentoFrameworkViewLayout->_renderBlock()
#17 //vendor/magento/framework/View/Layout.php(510): MagentoFrameworkViewLayout->renderNonCachedElement()
#18 //vendor/magento/framework/View/Layout.php(975): MagentoFrameworkViewLayout->renderElement()
#19 //generated/code/Magento/Framework/View/Layout/Interceptor.php(41): MagentoFrameworkViewLayout->getOutput()
#20 //vendor/magento/module-email/Model/Template/Filter.php(502): MagentoFrameworkViewLayoutInterceptor->getOutput()
#21 [internal function]: MagentoEmailModelTemplateFilter->emulateAreaCallback()
#22 //vendor/magento/framework/App/State.php(187): call_user_func_array()
#23 //vendor/magento/module-email/Model/Template/Filter.php(458): MagentoFrameworkAppState->emulateAreaCode()
#24 [internal function]: MagentoEmailModelTemplateFilter->layoutDirective()
#25 //vendor/magento/framework/Filter/DirectiveProcessor/LegacyDirective.php(42): ReflectionMethod->invokeArgs()
#26 //vendor/magento/framework/Filter/Template.php(272): MagentoFrameworkFilterDirectiveProcessorLegacyDirective->process()
#27 //vendor/magento/framework/Filter/Template.php(206): MagentoFrameworkFilterTemplate->processDirectives()
#28 //vendor/magento/module-email/Model/Template/Filter.php(1116): MagentoFrameworkFilterTemplate->filter()
#29 //vendor/magento/framework/Interception/Interceptor.php(58): MagentoEmailModelTemplateFilter->filter()
#30 //vendor/magento/framework/Interception/Interceptor.php(138): MagentoEmailModelTemplateFilterInterceptor->___callParent()
#31 //vendor/magento/framework/Interception/Interceptor.php(153): MagentoEmailModelTemplateFilterInterceptor->MagentoFrameworkInterception{closure}()
#32 //generated/code/Magento/Email/Model/Template/Filter/Interceptor.php(32): MagentoEmailModelTemplateFilterInterceptor->___callPlugins()
#33 //vendor/magento/module-email/Model/AbstractTemplate.php(363): MagentoEmailModelTemplateFilterInterceptor->filter()
#34 //vendor/magento/module-email/Model/Template.php(380): MagentoEmailModelAbstractTemplate->getProcessedTemplate()
#35 //vendor/magento/framework/Mail/Template/TransportBuilder.php(380): MagentoEmailModelTemplate->processTemplate()
#36 //vendor/magento/framework/Mail/Template/TransportBuilder.php(336): MagentoFrameworkMailTemplateTransportBuilder->prepareMessage()
#37 //generated/code/Magento/Framework/Mail/Template/TransportBuilder/Interceptor.php(41): MagentoFrameworkMailTemplateTransportBuilder->getTransport()
#38 //vendor/magento/module-sales/Model/Order/Email/SenderBuilder.php(91): MagentoFrameworkMailTemplateTransportBuilderInterceptor->getTransport()
#39 //vendor/magento/module-sales/Model/Order/Email/Sender.php(93): MagentoSalesModelOrderEmailSenderBuilder->sendCopyTo()
#40 //vendor/magento/module-sales/Model/Order/Email/Sender/OrderSender.php(108): MagentoSalesModelOrderEmailSender->checkAndSend()
#41 //vendor/magento/module-sales/Model/EmailSenderHandler.php(134): MagentoSalesModelOrderEmailSenderOrderSender->send()
#42 //vendor/magento/module-sales/Cron/SendEmails.php(46): MagentoSalesModelEmailSenderHandler->sendEmails()
#43 [internal function]: MagentoSalesCronSendEmails->execute()
#44 //vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(368): call_user_func_array()
#45 //vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(879): MagentoCronObserverProcessCronQueueObserver->_runJob()
#46 //vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(840): MagentoCronObserverProcessCronQueueObserver->tryRunJob()
#47 //vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(280): MagentoCronObserverProcessCronQueueObserver->processPendingJobs()
#48 //vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): MagentoCronObserverProcessCronQueueObserver->execute()
#49 //vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod()
#50 //vendor/magento/framework/Event/Manager.php(65): MagentoFrameworkEventInvokerInvokerDefault->dispatch()
#51 //generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch()
#52 //vendor/magento/framework/App/Cron.php(86): MagentoFrameworkEventManagerProxy->dispatch()
#53 //vendor/magento/module-cron/Console/Command/CronCommand.php(126): MagentoFrameworkAppCron->launch()
#54 //vendor/symfony/console/Command/Command.php(298): MagentoCronConsoleCommandCronCommand->execute()
#55 //vendor/magento/framework/Interception/Interceptor.php(58): SymfonyComponentConsoleCommandCommand->run()
#56 //vendor/magento/framework/Interception/Interceptor.php(138): MagentoCronConsoleCommandCronCommandInterceptor->___callParent()
#57 //vendor/magento/framework/Interception/Interceptor.php(153): MagentoCronConsoleCommandCronCommandInterceptor->MagentoFrameworkInterception{closure}()
#58 //generated/code/Magento/Cron/Console/Command/CronCommand/Interceptor.php(23): MagentoCronConsoleCommandCronCommandInterceptor->___callPlugins()
#59 //vendor/symfony/console/Application.php(1040): MagentoCronConsoleCommandCronCommandInterceptor->run()
#60 //vendor/symfony/console/Application.php(301): SymfonyComponentConsoleApplication->doRunCommand()
#61 //vendor/magento/framework/Console/Cli.php(116): SymfonyComponentConsoleApplication->doRun()
#62 //vendor/symfony/console/Application.php(171): MagentoFrameworkConsoleCli->doRun()
#63 //bin/magento(23): SymfonyComponentConsoleApplication->run()
#64 {main} {"exception":"[object] (Exception(code: 0): Warning: Undefined array key "file" in //vendor/magento/framework/Exception/NoSuchEntityException.php on line 36 at //vendor/magento/framework/App/ErrorHandler.php:62)"} []

2

Answers


  1. Please follow these steps:

    1. please rename the vendor folder
    2. After renaming the vendor folder, you run the " composer update " command.
    3. Run Magento Main commands: php bin/magento s:up; php bin/magento s:di:c; php bin/magento s:static-content:deploy -f; php bin/magento c:f
    Login or Signup to reply.
  2. my solution
    dev/grid/async_indexing = 0;
    It works. So I don’t know if it has any effect.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search