2017-12-25 7 views
0

commerce 모듈을 제거하려고합니다.drupal 8 commerce를 제거 할 때 예기치 않은 오류가 발생했습니다.

커머스 모듈로 템플릿을 구입하고 데모 데이터가있는 파일을 사용했습니다. 템플릿 제공 업체에 연락했으며 템플릿과 관련된 문제가 아니라 모듈과 관련된 문제임을 분명히했습니다.

모듈을 하나씩 제거하고 각 제거 사이에 모든 캐시를 플러시했습니다.

또한 모듈을 제거하기 전에 주문, 제품 등 모든보기, 블록 및 상거래 데이터를 삭제했습니다.

Commerce, Commerce Price, Commerce Store 및 Commerce Product를 제외한 모든 Commerce 모듈을 설치 제거 할 수 있습니다.

Commerce Product 설치 제거를 시도 할 때마다 어떤 이유로 완료되지 않습니다. 나만받습니다.

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Component\Plugin\Exception\PluginNotFoundException</em>: The "commerce_product" entity type does not exist. in <em class="placeholder">Drupal\Core\Entity\EntityTypeManager->getDefinition()</em> (line <em class="placeholder">133</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/EntityTypeManager.php</em>). <pre class="backtrace">flag_views_data_alter(Array, NULL, NULL) (Line: 501) 
Drupal\Core\Extension\ModuleHandler->alter('views_data', Array) (Line: 254) 
Drupal\views\ViewsData->getData() (Line: 162) 
Drupal\views\ViewsData->get('block_content') (Line: 91) 
Drupal\views\Plugin\Derivative\ViewsEntityRow->getDerivativeDefinitions(Array) (Line: 101) 
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87) 
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 283) 
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 174) 
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22) 
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('entity:node') (Line: 16) 
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('entity:node', Array) (Line: 84) 
Drupal\Component\Plugin\PluginManagerBase->createInstance('entity:node') (Line: 818) 
Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('row') (Line: 122) 
Drupal\views\Plugin\views\style\StylePluginBase->init(Object, Object, Array) (Line: 821) 
Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('style') (Line: 883) 
Drupal\views\ViewExecutable->initStyle() (Line: 1840) 
Drupal\views\ViewExecutable->getTitle() (Line: 132) 
Drupal\views\Plugin\views\display\PathPluginBase->getRoute('blog', 'page') (Line: 220) 
Drupal\views\Plugin\views\display\PathPluginBase->collectRoutes(Object) (Line: 120) 
Drupal\views\EventSubscriber\RouteSubscriber->routes() 
call_user_func(Array) (Line: 146) 
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83) 
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 477) 
Drupal\Core\Extension\ModuleInstaller->uninstall(Array, 1) (Line: 91) 
Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array) (Line: 160) 
Drupal\system\Form\ModulesUninstallConfirmForm->submitForm(Array, Object) 
call_user_func_array(Array, Array) (Line: 111) 
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51) 
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585) 
Drupal\Core\Form\FormBuilder->processForm('system_modules_uninstall_confirm_form', Array, Object) (Line: 314) 
Drupal\Core\Form\FormBuilder->buildForm('system_modules_uninstall_confirm_form', Object) (Line: 74) 
Drupal\Core\Controller\FormController->getContentResult(Object, Object) 
call_user_func_array(Array, Array) (Line: 123) 
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 576) 
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) 
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) 
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() 
call_user_func_array(Object, Array) (Line: 153) 
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) 
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57) 
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) 
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47) 
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) 
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) 
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) 
Drupal\Core\DrupalKernel->handle(Object) (Line: 19) 
</pre> 

더 이상 웹 사이트에 액세스 할 수 없습니다.

나에게 오류의 원인을 설명 할 수 있습니까?

+0

먼저 Cron을 실행 해보십시오. –

+0

응답 해 주셔서 감사합니다. 나는 그렇게했다. 이 문제는 여전히 동일합니다. 내 생각 엔 모듈의 일부보기/차단은 제거 할 때 삭제되지 않는 것입니다. 따라서 프런트 엔드가로드되면이 오류가 발생합니다. – Natraj

답변

0

주제가 상거래 모듈에 의존하는 것처럼 보이므로 테마를 확인해야하며 테마에 직접 렌더링 된 일부보기가있을 수 있으며 이제는보기가 제품 항목을 가져 오지 않도록 모듈을 삭제했습니다. . 당신은 그것을 활성화해야합니다.

+0

감사합니다. 테마에 의해 사용 된 뷰가 확실하지 않습니다. 거기에 내가 오류 로그에서 찾을 수있는 방법은? – Natraj

+0

나는 템플리트 제공자에게 이것에 대해 물어 보았다. 이 응답은 "각 모듈은 제거 프로세스 전에 제거해야하는 콘텐츠를 제거하는 링크를 제공해야하기 때문에 모듈을 제거하기 전에 수동으로 모든 콘텐츠를 제거 할 필요가 없습니다." 제거하는 동안이 문제를 일으키는보기가 삭제되지 않는 이유는 무엇입니까? – Natraj

+0

아직 "commerce_product"엔티티가 필요하며 찾을 수없는 플러그인 또는보기 또는 블록이 있습니다. 이것이이 오류의 원인입니다. 그래서 나는 그 과정을 놓친다 고 생각합니다. – Chandraveer

관련 문제