从sw 6.4.8.2更新到6.4.13.0后出现以下错误如何解决这个问题?
In ImageCmsElementResolver.php line 26:
[ArgumentCountError]
Too few arguments to function ShopwareCoreContentMediaCmsImageCmsElementResolver::__construct(), 0 passed in /home/xxxx/yyyyy/var/cache/dev_h444cf98b71a1ac0a254d0a81916b032e/ContainerG5HDhmp/Shopware_Production_Kernel
DevDebugContainer.php on line 6664 and exactly 1 expected
将parent="ShopwareCoreContentMediaCmsImageCmsElementResolver"
添加到services.xml.中的服务注册中
f.e.
<service id="MyPluginCoreContentMediaCmsTypeTeaser5in1TypeDataResolver"
parent="ShopwareCoreContentMediaCmsImageCmsElementResolver">
<tag name="shopware.cms.data_resolver"/>
</service>
阅读更多:https://github.com/shopware/platform/issues/2463
在我的案例中,原因也是主题不兼容——停用它并重新安装更新(如本文所述(解决了问题。