subscribepro-magento2-ext
subscribepro-magento2-ext copied to clipboard
Admin order creation broken after deleting a website.
Steps to regenerate the issue:-
- Go to Admin Sidebar->Stores->All Stores.
- Create New Website.
- Then Create one more new website & create New Store & select the latest created website in website dropdown.
- Create New Store View & Select the New Store Created.
- Now delete the only website created in Step 2.
- Run upgrade, deploy, re-index & cache commands.
- 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]