php - 进入开发模式并在 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
有人会碰巧知道这里发生了什么吗?
干杯
解决方案
推荐阅读
- javascript - 使用 tr.remove() 删除 HTML 表的行,提交按钮只发回它上面的行而不是它下面的行
- javascript - 在将大量值导入和分配给角度形式时,在潜在的内存不足崩溃(Chrome 浏览器)之前暂停
- linux - 添加日志文件命令会将脚本置于循环中?
- cassandra - 如何将谷歌云功能连接到 Kubernetes 集群中的 cassandra 数据库
- java - 搜索 char 数组以查看 char 是否匹配
- php - PHP Composer 自动加载不起作用,没有启动类
- c++ - 在 C++ 中将数组内容格式化为一系列字符串并输出到 .csv?
- postgresql - SQL 中每个 uuid 的固定时间戳范围
- ios - iOS IPA 网络分发延迟
- android - gradle,本地项目作为另一个项目的依赖项/基础