Depuis la dernièree version DEV, j'ai ce message d'erreur :

The website encountered an unexpected error. Please try again later.

Type php
Date Jeudi, 6 février, 2020 - 23:16
Utilisateur administrateur
Emplacement https://www.example.com/fr/admin/modules/uninstall
Référent https://www.example.com/
Message Error: Call to a member function getActiveFieldStorageDefinitions() on null in Drupal\commerce_stock_local\LocalStockUninstallValidator->validate() (line 66 of /var/www/www-example-com/web/modules/contrib/commerce_stock/modules/local_storage/src/LocalStockUninstallValidator.php)

#0 /var/www/www-example-com/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(587): Drupal\commerce_stock_local\LocalStockUninstallValidator->validate('commerce_stock_...')
#1 /var/www/www-example-com/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(99): Drupal\Core\Extension\ModuleInstaller->validateUninstall(Array)
#2 /var/www/www-example-com/web/core/modules/system/src/Form/ModulesUninstallForm.php(132): Drupal\Core\ProxyClass\Extension\ModuleInstaller->validateUninstall(Array)
#3 [internal function]: Drupal\system\Form\ModulesUninstallForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#4 /var/www/www-example-com/web/core/lib/Drupal/Core/Form/FormBuilder.php(520): call_user_func_array(Array, Array)
#5 /var/www/www-example-com/web/core/lib/Drupal/Core/Form/FormBuilder.php(277): Drupal\Core\Form\FormBuilder->retrieveForm('system_modules_...', Object(Drupal\Core\Form\FormState))
#6 /var/www/www-example-com/web/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesUninstallForm), Object(Drupal\Core\Form\FormState))
#7 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#8 /var/www/www-example-com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#9 /var/www/www-example-com/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/www-example-com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#11 /var/www/www-example-com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#12 /var/www/www-example-com/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/www-example-com/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#14 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /var/www/www-example-com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /var/www/www-example-com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /var/www/www-example-com/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /var/www/www-example-com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /var/www/www-example-com/web/core/lib/Drupal/Core/DrupalKernel.php(694): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /var/www/www-example-com/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#24 {main}

.
Severity Erreur

Type php
Date Jeudi, 6 février, 2020 - 23:16
Utilisateur administrateur
Emplacement https://www.example.com/fr/admin/modules/uninstall
Référent https://www.example.com/
Message Notice: Undefined property: Drupal\commerce_stock_local\LocalStockUninstallValidator::$entityField in Drupal\commerce_stock_local\LocalStockUninstallValidator->validate() (line 66 of /var/www/www-example-com/web/modules/contrib/commerce_stock/modules/local_storage/src/LocalStockUninstallValidator.php)

#0 /var/www/www-example-com/web/core/includes/bootstrap.inc(600): _drupal_error_handler_real(8, 'Undefined prope...', '/var/www/www-s1...', 66, Array)
#1 /var/www/www-example-com/web/modules/contrib/commerce_stock/modules/local_storage/src/LocalStockUninstallValidator.php(66): _drupal_error_handler(8, 'Undefined prope...', '/var/www/www-s1...', 66, Array)
#2 /var/www/www-example-com/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(587): Drupal\commerce_stock_local\LocalStockUninstallValidator->validate('commerce_stock_...')
#3 /var/www/www-example-com/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(99): Drupal\Core\Extension\ModuleInstaller->validateUninstall(Array)
#4 /var/www/www-example-com/web/core/modules/system/src/Form/ModulesUninstallForm.php(132): Drupal\Core\ProxyClass\Extension\ModuleInstaller->validateUninstall(Array)
#5 [internal function]: Drupal\system\Form\ModulesUninstallForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#6 /var/www/www-example-com/web/core/lib/Drupal/Core/Form/FormBuilder.php(520): call_user_func_array(Array, Array)
#7 /var/www/www-example-com/web/core/lib/Drupal/Core/Form/FormBuilder.php(277): Drupal\Core\Form\FormBuilder->retrieveForm('system_modules_...', Object(Drupal\Core\Form\FormState))
#8 /var/www/www-example-com/web/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesUninstallForm), Object(Drupal\Core\Form\FormState))
#9 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#10 /var/www/www-example-com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#11 /var/www/www-example-com/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /var/www/www-example-com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#13 /var/www/www-example-com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#14 /var/www/www-example-com/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#15 /var/www/www-example-com/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#16 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /var/www/www-example-com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /var/www/www-example-com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /var/www/www-example-com/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /var/www/www-example-com/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /var/www/www-example-com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /var/www/www-example-com/web/core/lib/Drupal/Core/DrupalKernel.php(694): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /var/www/www-example-com/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#26 {main}

.
Severity Information

Comments

zenimagine created an issue. See original summary.

olafkarsten’s picture

Title: The website encountered an unexpected error. Please try again later. » fatal error from StockUninstallValidator when going to administration uninstall page

thanks for reporting. I can confirm this issue.

Reproduce:
- Install commerce_stock and submodules
- go to /admin/modules/uninstall
- ...BOOM

jwwj’s picture

Same here, just ran into it when going to uninstall another module

  • olafkarsten committed 5a2b7be on 8.x-1.x
    Issue #3111786 by zenimagine, olafkarsten: fatal error from...
olafkarsten’s picture

Status: Active » Fixed

This happens if we commit stuff without tests. :P

Latest dev should work. Install and rebuild the caches.

Feel free to reopen if error persists

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sooraj sahai’s picture

I have updated the commerce stock module in dev version and rebuild the cache but still I am getting the same issue.