Shopware 6 shop-down-激活插件后出现错误500.该怎么办



我试图激活一个插件,但现在我收到了以下错误,我无法登录到后端。我不是专家:

There is no extension able to load the configuration for "admin_worker" (in "/www/htdocs/w016e110/shopware-boxen-werk.de/config/packages/shopware.yaml"). Looked for namespace "admin_worker", found ""framework", "monolog", "sensio_framework_extra", "twig", "web_profiler", "debug", "enqueue", "enqueue_adapter", "shopware", "storefront", "elasticsearch", "frosh_tools"" in /www/htdocs/w016e110/shopware-boxen-werk.de/config/packages/shopware.yaml (which is loaded in resource "/www/htdocs/w016e110/shopware-boxen-werk.de/config/packages/shopware.yaml").
Exceptions 2Stack Traces 2
SymfonyComponentConfigException
LoaderLoadException
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/config/Loader/FileLoader.php (line 174)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/config/Loader/FileLoader.php -> doImport (line 98)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/dependency-injection/Loader/FileLoader.php -> import (line 66)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/dependency-injection/Loader/GlobFileLoader.php -> import (line 27)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/config/Loader/DelegatingLoader.php -> load (line 40)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/shopware/core/Kernel.php -> load (line 268)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php -> configureContainer (line 171)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/dependency-injection/Loader/ClosureLoader.php -> SymfonyBundleFrameworkBundleKernel{closure} (line 39)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/config/Loader/DelegatingLoader.php -> load (line 40)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php -> load (line 196)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/http-kernel/Kernel.php -> registerContainerConfiguration (line 649)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/symfony/http-kernel/Kernel.php -> buildContainer (line 545)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/shopware/core/Kernel.php -> initializeContainer (line 191)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/shopware/core/HttpKernel.php -> boot (line 126)
in /www/htdocs/w016e110/shopware-boxen-werk.de/vendor/shopware/core/HttpKernel.php -> doHandle (line 79)
HttpKernel->handle(object(Request))
in /www/htdocs/w016e110/shopware-boxen-werk.de/public/index.php (line 74)
if ($_SERVER['COMPOSER_PLUGIN_LOADER'] ?? $_SERVER['DISABLE_EXTENSIONS'] ?? false) {    $kernel->setPluginLoader(new ShopwareCoreFrameworkPluginKernelPluginLoaderComposerPluginLoader($classLoader));}$result = $kernel->handle($request);$result->getResponse()->send();$kernel->terminate($result->getRequest(), $result->getResponse());
SymfonyComponentDependencyInjectionException
InvalidArgumentException
There is no extension able to load the configuration for "admin_worker" (in "/www/htdocs/w016e110/shopware-boxen-werk.de/config/packages/shopware.yaml"). Looked for namespace "admin_worker", found ""framework", "monolog", "sensio_framework_extra", "twig", "web_profiler", "debug", "enqueue", "enqueue_adapter", "shopware", "storefront", "elasticsearch", "frosh_tools"".

看起来config/packages/shopware.yaml中的配置是错误的。只需取消注释即可。您的IDE通常应该显示错误,因为配置具有JSON模式。https://github.com/shopware/platform/blob/trunk/config-schema.json

听起来您使用了属性admin_worker作为主节点,但应该是像这样的shopware的子节点。

# config/packages/shopware.yaml
shopware:
admin_worker:
enable_admin_worker: false

相关内容

最新更新