Worldpay / Worldpay-Magento2-CG

Worldpay Magento 2 Plugin for Worldpay Corporate Gateway
Other
17 stars 36 forks source link

Circular dependency issue #120

Open sridevi247commerce opened 1 year ago

sridevi247commerce commented 1 year ago

Hi, I am facing the following issue after installing sapient worldpay We are using the magento version 2.4.5 and sapient worldpay "version": "2.4.5-rc1122", {"0":"Circular dependency: Sapient\Worldpay\Model\PaymentMethods\CreditCards depends on Magento\Multishipping\Model\Checkout\Type\Multishipping\State and vice versa.","1":"#1 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor\/magento\/module-payment\/Model\/Method\/Factory.php:40]\n#2 Magento\Payment\Model\Method\Factory->create() called at [vendor\/magento\/module-payment\/Model\/Config.php:94]\n#3 Magento\Payment\Model\Config->getActiveMethods() called at [app\/code\/Anowave\/FilterPayment\/Model\/Entity\/Attribute\/Source\/PaymentMethods.php:106]\n#4 Anowave\FilterPayment\Model\Entity\Attribute\Source\PaymentMethods->getAllOptions() called at [vendor\/magento\/module-customer\/Model\/AttributeMetadataConverter.php:98]\n#5 Magento\Customer\Model\AttributeMetadataConverter->createMetadataAttribute() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CustomerMetadata.php:87]\n#6 Magento\Customer\Model\Metadata\CustomerMetadata->getAttributeMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CustomerMetadata.php:119]\n#7 Magento\Customer\Model\Metadata\CustomerMetadata->getAllAttributesMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CustomerMetadata.php:141]\n#8 Magento\Customer\Model\Metadata\CustomerMetadata->getCustomAttributesMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CachedMetadata.php:99]\n#9 Magento\Customer\Model\Metadata\CachedMetadata->getCustomAttributesMetadata() called at [vendor\/magento\/framework\/Api\/AbstractExtensibleObject.php:152]\n#10 Magento\Framework\Api\AbstractExtensibleObject->getEavAttributesCodes() called at [vendor\/magento\/module-customer\/Model\/Data\/Customer.php:48]\n#11 Magento\Customer\Model\Data\Customer->getCustomAttributesCodes() called at [vendor\/magento\/framework\/Api\/AbstractExtensibleObject.php:117]\n#12 Magento\Framework\Api\AbstractExtensibleObject->setCustomAttribute() called at [vendor\/magento\/framework\/Api\/DataObjectHelper.php:151]\n#13 Magento\Framework\Api\DataObjectHelper->_setDataValues() called at [vendor\/magento\/framework\/Api\/DataObjectHelper.php:85]\n#14 Magento\Framework\Api\DataObjectHelper->populateWithArray() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#15 Magento\Framework\Api\DataObjectHelper\Interceptor->callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#16 Magento\Framework\Api\DataObjectHelper\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#17 Magento\Framework\Api\DataObjectHelper\Interceptor->callPlugins() called at [generated\/code\/Magento\/Framework\/Api\/DataObjectHelper\/Interceptor.php:23]\n#18 Magento\Framework\Api\DataObjectHelper\Interceptor->populateWithArray() called at [vendor\/magento\/module-customer\/Model\/Customer.php:356]\n#19 Magento\Customer\Model\Customer->getDataModel() called at [generated\/code\/Magento\/Customer\/Model\/Customer\/Interceptor.php:32]\n#20 Magento\Customer\Model\Customer\Interceptor->getDataModel() called at [vendor\/magento\/module-customer\/Model\/Session.php:246]\n#21 Magento\Customer\Model\Session->getCustomerDataObject() called at [generated\/code\/Magento\/Customer\/Model\/Session\/Interceptor.php:50]\n#22 Magento\Customer\Model\Session\Interceptor->getCustomerDataObject() called at [vendor\/magento\/module-multishipping\/Model\/Checkout\/Type\/Multishipping.php:1102]\n#23 Magento\Multishipping\Model\Checkout\Type\Multishipping->getCustomer() called at [generated\/code\/Magento\/Multishipping\/Model\/Checkout\/Type\/Multishipping\/Interceptor.php:203]\n#24 Magento\Multishipping\Model\Checkout\Type\Multishipping\Interceptor->getCustomer() called at [vendor\/magento\/module-multishipping\/Model\/Checkout\/Type\/Multishipping.php:287]\n#25 Magento\Multishipping\Model\Checkout\Type\Multishipping->_init() called at [vendor\/magento\/module-multishipping\/Model\/Checkout\/Type\/Multishipping.php:270]\n#26 Magento\Multishipping\Model\Checkout\Type\Multishipping->construct() called at [generated\/code\/Magento\/Multishipping\/Model\/Checkout\/Type\/Multishipping\/Interceptor.php:14]\n#27 Magento\Multishipping\Model\Checkout\Type\Multishipping\Interceptor->construct() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:121]\n#28 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:66]\n#29 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#30 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:170]\n#31 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:276]\n#32 Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:239]\n#33 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#34 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#35 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#36 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:170]\n#37 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:276]\n#38 Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:239]\n#39 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#40 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#41 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#42 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:170]\n#43 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:276]\n#44 Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:239]\n#45 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#46 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#47 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#48 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:170]\n#49 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:276]\n#50 Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:239]\n#51 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#52 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#53 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#54 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:170]\n#55 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:276]\n#56 Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:239]\n#57 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#58 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#59 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:70]\n#60 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:170]\n#61 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:276]\n#62 Magento\Framework\ObjectManager\Factory\AbstractFactory->getResolvedArgument() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:239]\n#63 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:34]\n#64 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php:59]\n#65 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:56]\n#66 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor\/magento\/module-payment\/Model\/Method\/Factory.php:40]\n#67 Magento\Payment\Model\Method\Factory->create() called at [vendor\/magento\/module-payment\/Model\/Config.php:94]\n#68 Magento\Payment\Model\Config->getActiveMethods() called at [app\/code\/Anowave\/FilterPayment\/Model\/Entity\/Attribute\/Source\/PaymentMethods.php:106]\n#69 Anowave\FilterPayment\Model\Entity\Attribute\Source\PaymentMethods->getAllOptions() called at [vendor\/magento\/module-customer\/Model\/AttributeMetadataConverter.php:98]\n#70 Magento\Customer\Model\AttributeMetadataConverter->createMetadataAttribute() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CustomerMetadata.php:87]\n#71 Magento\Customer\Model\Metadata\CustomerMetadata->getAttributeMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CustomerMetadata.php:119]\n#72 Magento\Customer\Model\Metadata\CustomerMetadata->getAllAttributesMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CustomerMetadata.php:141]\n#73 Magento\Customer\Model\Metadata\CustomerMetadata->getCustomAttributesMetadata() called at [vendor\/magento\/module-customer\/Model\/Metadata\/CachedMetadata.php:99]\n#74 Magento\Customer\Model\Metadata\CachedMetadata->getCustomAttributesMetadata() called at [vendor\/magento\/framework\/Api\/AbstractExtensibleObject.php:152]\n#75 Magento\Framework\Api\AbstractExtensibleObject->getEavAttributesCodes() called at [vendor\/magento\/module-customer\/Model\/Data\/Customer.php:48]\n#76 Magento\Customer\Model\Data\Customer->getCustomAttributesCodes() called at [vendor\/magento\/framework\/Api\/AbstractExtensibleObject.php:117]\n#77 Magento\Framework\Api\AbstractExtensibleObject->setCustomAttribute() called at [vendor\/magento\/framework\/Api\/DataObjectHelper.php:151]\n#78 Magento\Framework\Api\DataObjectHelper->_setDataValues() called at [vendor\/magento\/framework\/Api\/DataObjectHelper.php:85]\n#79 Magento\Framework\Api\DataObjectHelper->populateWithArray() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#80 Magento\Framework\Api\DataObjectHelper\Interceptor->callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#81 Magento\Framework\Api\DataObjectHelper\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#82 Magento\Framework\Api\DataObjectHelper\Interceptor->callPlugins() called at [generated\/code\/Magento\/Framework\/Api\/DataObjectHelper\/Interceptor.php:23]\n#83 Magento\Framework\Api\DataObjectHelper\Interceptor->populateWithArray() called at [vendor\/magento\/module-customer\/Model\/Customer.php:356]\n#84 Magento\Customer\Model\Customer->getDataModel() called at [generated\/code\/Magento\/Customer\/Model\/Customer\/Interceptor.php:32]\n#85 Magento\Customer\Model\Customer\Interceptor->getDataModel() called at [vendor\/magento\/module-customer\/Model\/ResourceModel\/CustomerRepository.php:403]\n#86 Magento\Customer\Model\ResourceModel\CustomerRepository->getById() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#87 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#88 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#89 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->callPlugins() called at [generated\/code\/Magento\/Customer\/Model\/ResourceModel\/CustomerRepository\/Interceptor.php:41]\n#90 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->getById() called at [vendor\/magento\/module-checkout\/Controller\/Action.php:63]\n#91 Magento\Checkout\Controller\Action->_preDispatchValidateCustomer() called at [vendor\/magento\/module-checkout\/Controller\/Onepage.php:147]\n#92 Magento\Checkout\Controller\Onepage->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#93 Magento\Checkout\Controller\Index\Index\Interceptor->callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#94 Magento\Checkout\Controller\Index\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#95 Magento\Checkout\Controller\Index\Index\Interceptor->callPlugins() called at [generated\/code\/Magento\/Checkout\/Controller\/Index\/Index\/Interceptor.php:32]\n#96 Magento\Checkout\Controller\Index\Index\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/FrontController.php:245]\n#97 Magento\Framework\App\FrontController->getActionResponse() called at [vendor\/magento\/framework\/App\/FrontController.php:212]\n#98 Magento\Framework\App\FrontController->processRequest() called at [vendor\/magento\/framework\/App\/FrontController.php:147]\n#99 Magento\Framework\App\FrontController->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#100 Magento\Framework\App\FrontController\Interceptor->callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#101 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/module-store\/App\/FrontController\/Plugin\/RequestPreprocessor.php:99]\n#102 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#103 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php:71]\n#104 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#105 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#106 Magento\Framework\App\FrontController\Interceptor->callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:23]\n#107 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:116]\n#108 Magento\Framework\App\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:23]\n#109 Magento\Framework\App\Http\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:264]\n#110 Magento\Framework\App\Bootstrap->run() called at [pub\/index.php:30]\n","url":"\/checkout\/","script_name":"\/index.php","report_id":"76c099ce6b1f1d63d893df09a4cbc9d272bd98857985dc21736271984623fca4"}

Steps to reproduce the issue:

  1. Installing worldpay and configured.
  2. Logged in as customer and adding product to cart
  3. Doing some backend changes and clearing caches
  4. Loading the frontend again getting the above error Please let us know the fix as soon as possible. Thanks in advance.
elavarasann commented 1 year ago

Hi, we will check from our side and come back to you.