首页 > 解决方案 > 进入开发模式并在 Magento 2 中更新插件后出现致命错误“无效文档”

问题描述

刚刚更新了我的 M2 2.3.3 站点中的一些模块,并在前端和后端出现了致命错误。

该站点处于生产模式,因此我将其置于维护状态,然后进入开发模式。更新模块时,命令挂起。刷新站点返回:

Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Invalid Document Element 'arguments', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The type definition 'array', specified by xsi:type, is blocked or not validly derived from the type definition of the element declaration. Line: 10 in /home/.../vendor/magento/framework/Config/Reader/Filesystem.php:168 Stack trace: #0 /home/.../vendor/magento/framework/Config/Reader/Filesystem.php(132): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator)) #1 /home/.../generated/code/Magento/Framework/ObjectManager/Config/Reader/Dom/Proxy.php(95): Magento\Framework\Config\Reader\Filesystem->read('graphql') #2 /home/.../vendor/magento/framework/Interception/Config/Config.php(206): Magento\Framework\ObjectManager\Config\Reader\Dom\Proxy->read('graphql') #3 /home/...dev.saf in /home/.../vendor/magento/framework/Config/Reader/Filesystem.php on line 168

通过 CLI 运行任何命令都会返回

Invalid Document
Element 'arguments', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The type definition 'array', specified by xsi:type, is blocked or not validly derived from the typedefinition of the element declaration.
Line: 10

有人会碰巧知道这里发生了什么吗?

干杯

标签: phpmagento2

解决方案


推荐阅读