subscribepro / subscribepro-magento2-ext

Subscribe Pro Magento 2 Integration Extension
MIT License
24 stars 22 forks source link

Admin order creation broken after deleting a website. #274

Open chrismshea opened 5 months ago

chrismshea commented 5 months ago

Steps to regenerate the issue:-

1) Go to Admin Sidebar->Stores->All Stores. 2) Create New Website. 3) Then Create one more new website & create New Store & select the latest created website in website dropdown. 4) Create New Store View & Select the New Store Created. 5) Now delete the only website created in Step 2. 6) Run upgrade, deploy, re-index & cache commands. 7) Click on Sales->New Order & then issue arrives.

Exception Message

Exception [#0](https://subscribepro.zendesk.com/agent/tickets/0) (Magento\Framework\Exception\NoSuchEntityException): The website with id 7 that was requested wasn't found. Verify the website and try again.
<pre>[#1](https://subscribepro.zendesk.com/agent/tickets/1) Magento\Store\Model\StoreManager->getWebsite() called at [vendor/subscribepro/subscribepro-magento2-ext/Platform/Platform.php:83]
[#2](https://subscribepro.zendesk.com/agent/tickets/2) Swarming\SubscribePro\Platform\Platform->getWebsiteCode() called at [vendor/subscribepro/subscribepro-magento2-ext/Platform/Platform.php:69]
[#3](https://subscribepro.zendesk.com/agent/tickets/3) Swarming\SubscribePro\Platform\Platform->getSdk() called at [vendor/subscribepro/subscribepro-magento2-ext/Platform/AbstractGeneral.php:35]
[#4](https://subscribepro.zendesk.com/agent/tickets/4) Swarming\SubscribePro\Platform\AbstractGeneral->getSdk() called at [vendor/subscribepro/subscribepro-magento2-ext/Platform/Tool/AbstractTool.php:13]
[#5](https://subscribepro.zendesk.com/agent/tickets/5) Swarming\SubscribePro\Platform\Tool\AbstractTool->getTool() called at [vendor/subscribepro/subscribepro-magento2-ext/Platform/Tool/Oauth.php:38]
[#6](https://subscribepro.zendesk.com/agent/tickets/6) Swarming\SubscribePro\Platform\Tool\Oauth->getSessionAccessToken() called at [vendor/subscribepro/subscribepro-magento2-ext/Gateway/Config/ConfigProvider.php:102]
[#7](https://subscribepro.zendesk.com/agent/tickets/7) Swarming\SubscribePro\Gateway\Config\ConfigProvider->getConfig() called at [vendor/subscribepro/subscribepro-magento2-ext/Block/Adminhtml/System/Config/Config.php:75]
[#8](https://subscribepro.zendesk.com/agent/tickets/8) Swarming\SubscribePro\Block\Adminhtml\System\Config\Config->getPaymentConfigs() called at [generated/code/Swarming/SubscribePro/Block/Adminhtml/System/Config/Config/Interceptor.php:23]
[#9](https://subscribepro.zendesk.com/agent/tickets/9) Swarming\SubscribePro\Block\Adminhtml\System\Config\Config\Interceptor->getPaymentConfigs() called at [vendor/subscribepro/subscribepro-magento2-ext/view/adminhtml/templates/payment/script.phtml:10]