php - 从 6.4.8.2 更新到 6.4.13.0 后,ImageCmsElementResolver 中的参数太少错误

标签 php updates shopware shopware6 swupdate

从 sw 6.4.8.2 更新到 6.4.13.0 后出现以下错误 怎么解决这个问题?

In ImageCmsElementResolver.php line 26:
                                                                                                                                                                                                                                                 
  [ArgumentCountError]                                                                                                                                                                                                                           
  Too few arguments to function Shopware\Core\Content\Media\Cms\ImageCmsElementResolver::__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="Shopware\Core\Content\Media\Cms\ImageCmsElementResolver" 添加到 services.xml 中的服务注册中。

f.e.

<service id="My\Plugin\Core\Content\Media\Cms\Type\Teaser5in1TypeDataResolver"
                 parent="Shopware\Core\Content\Media\Cms\ImageCmsElementResolver">
            <tag name="shopware.cms.data_resolver"/>
        </service>

了解更多:https://github.com/shopware/platform/issues/2463

关于php - 从 6.4.8.2 更新到 6.4.13.0 后,ImageCmsElementResolver 中的参数太少错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73079507/

相关文章:

r - 合并列以删除 NA 但优先考虑特定替换

javascript - 商店软件更新验证码不可见

mysql - 如何将半正矢公式应用到 Shopware 6 DAL 中?

javascript - 更新 Meteor.js 中的帖子

javascript - 如何删除wordpress中的页面链接?

php - 延长 PHP session 生命周期

php - mysqli_fetch_assoc()需要参数/调用成员函数bind_param()错误。如何获取并修复实际的mysql错误?

model - 无法在 Titanium Appcelerator 中使用合金更新模型

docker - Shopware 6 Docker Setup 添加 PHPMyAdmin

php - 尝试使用 Google OAuth 2.0 登录混合流程时出错(Google_IO_Exception',消息为 'HTTP Error: Unable to connect: ' 0'')