卸载drupal 8 commerce时出现意外错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了卸载drupal 8 commerce时出现意外错误相关的知识,希望对你有一定的参考价值。
我正在尝试卸载商务模块。
我购买了一个带有商业模块的模板,并使用带有演示数据的文件。我已经联系了模板提供商,他已经澄清了问题不在于模板,而在于模块。
我正在逐个卸载模块,并且每次卸载之间我都刷新了所有缓存。
在卸载模块之前,我还删除了商业下的所有视图,块和数据,例如订单,产品。
我可以卸载除Commerce,Commerce Price,Commerce Store和Commerce Product之外的所有商务模块。
每当我尝试卸载Commerce Product时,由于某种原因它都无法完成。我只能得到
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">DrupalComponentPluginExceptionPluginNotFoundException</em>: The "commerce_product" entity type does not exist. in <em class="placeholder">DrupalCoreEntityEntityTypeManager->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)
DrupalCoreExtensionModuleHandler->alter('views_data', Array) (Line: 254)
DrupalviewsViewsData->getData() (Line: 162)
DrupalviewsViewsData->get('block_content') (Line: 91)
DrupalviewsPluginDerivativeViewsEntityRow->getDerivativeDefinitions(Array) (Line: 101)
DrupalComponentPluginDiscoveryDerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
DrupalComponentPluginDiscoveryDerivativeDiscoveryDecorator->getDefinitions() (Line: 283)
DrupalCorePluginDefaultPluginManager->findDefinitions() (Line: 174)
DrupalCorePluginDefaultPluginManager->getDefinitions() (Line: 22)
DrupalCorePluginDefaultPluginManager->getDefinition('entity:node') (Line: 16)
DrupalCorePluginFactoryContainerFactory->createInstance('entity:node', Array) (Line: 84)
DrupalComponentPluginPluginManagerBase->createInstance('entity:node') (Line: 818)
DrupalviewsPluginviewsdisplayDisplayPluginBase->getPlugin('row') (Line: 122)
DrupalviewsPluginviewsstyleStylePluginBase->init(Object, Object, Array) (Line: 821)
DrupalviewsPluginviewsdisplayDisplayPluginBase->getPlugin('style') (Line: 883)
DrupalviewsViewExecutable->initStyle() (Line: 1840)
DrupalviewsViewExecutable->getTitle() (Line: 132)
DrupalviewsPluginviewsdisplayPathPluginBase->getRoute('blog', 'page') (Line: 220)
DrupalviewsPluginviewsdisplayPathPluginBase->collectRoutes(Object) (Line: 120)
DrupalviewsEventSubscriberRouteSubscriber->routes()
call_user_func(Array) (Line: 146)
DrupalCoreRoutingRouteBuilder->rebuild() (Line: 83)
DrupalCoreProxyClassRoutingRouteBuilder->rebuild() (Line: 477)
DrupalCoreExtensionModuleInstaller->uninstall(Array, 1) (Line: 91)
DrupalCoreProxyClassExtensionModuleInstaller->uninstall(Array) (Line: 160)
DrupalsystemFormModulesUninstallConfirmForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
DrupalCoreFormFormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
DrupalCoreFormFormSubmitter->doSubmitForm(Array, Object) (Line: 585)
DrupalCoreFormFormBuilder->processForm('system_modules_uninstall_confirm_form', Array, Object) (Line: 314)
DrupalCoreFormFormBuilder->buildForm('system_modules_uninstall_confirm_form', Object) (Line: 74)
DrupalCoreControllerFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 576)
DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 124)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}()
call_user_func_array(Object, Array) (Line: 153)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 657)
DrupalCoreDrupalKernel->handle(Object) (Line: 19)
</pre>
我无法访问该网站。
有人可以向我解释错误的原因吗?
答案
似乎主题依赖于商业模块,因此您必须检查主题,可能有一些直接在主题中呈现的视图,现在您已删除模块,以便视图不会获得产品实体。你必须启用它。
以上是关于卸载drupal 8 commerce时出现意外错误的主要内容,如果未能解决你的问题,请参考以下文章
SyntaxError:在 Heroku 上托管 Discord 机器人时出现意外的令牌 '??='
执行 mochawesome-merge 时出现“JSON 输入意外结束”
PDOException::("PDO::__construct(): 使用 MySQL 8 / PHP 7.2 / Laravel 进行缓存_sha2 auth: 109 时出现意外的服务