The module does not work with commerce_cart_flyout - it is still displayed add to cart.

The module cannot be uninstalled or reinstalled (with devel).
There are no more subscriptions in the eshop.

ERROR after Devel Reinstall
Unable to reinstall modules. Error: The following reasons prevent the modules from being uninstalled: There is content for the entity type: Stock notification. Remove stock notification entities..

ERROR afrer click on /admin/modules/uninstall/entity/commerce_stock_notification

Error: Call to a member function getFieldStorageDefinition() on null ve funkci Drupal\Core\Entity\ContentEntityBase->getEntityKey() (line 1303 file /web/core/lib/Drupal/Core/Entity/ContentEntityBase.php)
#0 /web/core/lib/Drupal/Core/Entity/ContentEntityBase.php(1254): Drupal\Core\Entity\ContentEntityBase->getEntityKey('label')
#1 /web/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php(129): Drupal\Core\Entity\ContentEntityBase->label()
#2 [internal function]: Drupal\system\Form\PrepareModulesEntityUninstallForm->buildForm(Array, Object(Drupal\Core\Form\FormState), 'commerce_stock_...')
#3 /web/core/lib/Drupal/Core/Form/FormBuilder.php(532): call_user_func_array(Array, Array)
#4 /web/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm('system_prepare_...', Object(Drupal\Core\Form\FormState))
#5 /web/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\PrepareModulesEntityUninstallForm), Object(Drupal\Core\Form\FormState))
#6 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#7 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#8 /web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#10 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#11 /web/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /web/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#13 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /web/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#22 {main}
...

Comments

martinpetracek created an issue. See original summary.

mandus.cz’s picture

Title: Problem with entities? » Unable to reinstall modules - Problem with stock notification entities.
Issue summary: View changes
mandus.cz’s picture

Issue summary: View changes
mandus.cz’s picture

Title: Unable to reinstall modules - Problem with stock notification entities. » The module cannot be uninstalled
zvonimirr’s picture

Assigned: Unassigned » zvonimirr
Status: Active » Fixed

Thank you for reporting this issue.

  • zvonimirr00 committed cdc1a70 on 8.x-1.x
    Issue #3168569 by zvonimirr00: The module cannot be uninstalled
    
zvonimirr’s picture

Status: Fixed » Closed (fixed)