下面记录了一些我在二次开发Magento2是所遇到的错误、错误原因以及解决方案:

1. Object DOMDocument should be created

type: report

日志摘要:

1 a:4:{i:0;s:37:"Object DOMDocument should be created.";i:1;s:7698:"#0 D:\www\prince\prince-dev\vendor\magento\framework\View\Element\UiComponent\Config\Reader.php(95): Magento\Framework\View\Element\UiComponent\Config\DomMerger->getDom()
2 #1 D:\www\prince\prince-dev\vendor\magento\module-ui\Model\Manager.php(258): Magento\Framework\View\Element\UiComponent\Config\Reader->read()
3 #2 D:\www\prince\prince-dev\vendor\magento\module-ui\Model\Manager.php(166): Magento\Ui\Model\Manager->prepare('bcn_news_edit_t...')
4 #3 D:\www\prince\prince-dev\vendor\magento\framework\View\Element\UiComponentFactory.php(144): Magento\Ui\Model\Manager->prepareData('bcn_news_edit_t...')
5 #4 D:\www\prince\prince-dev\vendor\magento\framework\View\Layout\Generator\UiComponent.php(124): Magento\Framework\View\Element\UiComponentFactory->create('bcn_news_edit_t...', NULL, Array)

原因: Layout中的某个Block没有找到指定的Class,或者说指定的Class不存在

解决方案: 新增对应于这个Block的Class,或者从Layout中删除Block节点

如果您觉得阅读本文对您有帮助,欢迎转载本文,但是转载文章之后必须在文章页面明显位置保留此段声明,否则保留追究法律责任的权利。

作  者:www.jpdou.top

相关文章:

  • 2022-12-23
  • 2021-08-28
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-05-28
  • 2021-11-17
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案