[整理]Magento2 开发中遇到的错误以及解决方案

下面记录了一些我在二次开发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:wwwprinceprince-devvendormagentoframeworkViewElementUiComponentConfigReader.php(95): MagentoFrameworkViewElementUiComponentConfigDomMerger->getDom()
2 #1 D:wwwprinceprince-devvendormagentomodule-uiModelManager.php(258): MagentoFrameworkViewElementUiComponentConfigReader->read()
3 #2 D:wwwprinceprince-devvendormagentomodule-uiModelManager.php(166): MagentoUiModelManager->prepare('bcn_news_edit_t...')
4 #3 D:wwwprinceprince-devvendormagentoframeworkViewElementUiComponentFactory.php(144): MagentoUiModelManager->prepareData('bcn_news_edit_t...')
5 #4 D:wwwprinceprince-devvendormagentoframeworkViewLayoutGeneratorUiComponent.php(124): MagentoFrameworkViewElementUiComponentFactory->create('bcn_news_edit_t...', NULL, Array)

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

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

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

作  者:blog.jpdou.top

原文链接:http://blog.jpdou.top/bugs-in-magento2-dev/

原文地址:https://www.cnblogs.com/jpdoutop/p/Bugs-in-Magento2-Dev.html