在我的带有2个自定义模块的Magento 2.1.1商店中,我的一些管理内容页面未加载.(小部件,主题和shedule正在加载 - 其他不是:-()
对于所有这些我得到"未注册句柄"错误:未注册句柄cms_page_listing_data_source未注册句柄cms_block_listing_data_source未注册句柄design_config_listing_data_source
虽然所有这些都存在于xml文件中.app/vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_listing.xml ...
当我向商店添加"demo"商店选项时,这似乎是第一次......但我不确定.
任何帮助都会很棒!
谢谢Stijn
小智 8
这里的问题是有人在 etc/adminhtml/di.xml
搜索这样的东西
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="NameOfHandle" xsi:type="string">Vendor\Module\Model\ResourceModel\Something\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="Vendor\Module\Model\ResourceModel\Something\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">NameOfTable</argument>
<argument name="resourceModel" xsi:type="string">Vendor\Module\Model\ResourceModel\Something</argument>
</arguments>
</virtualType>
Run Code Online (Sandbox Code Playgroud)
不要搜索他找不到的手柄。只需在模块中浏览etc / adminhtml / di.xml并搜索
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
Run Code Online (Sandbox Code Playgroud)
将这段代码移到etc/di.xml而不是etc/adminhtml/di.xml
谢谢 - 更改权限没有帮助.
但是发现问题和解决方案:我将di.xml拆分为etc/di.xml和etc/adminhtml/di.xml ==>这是错误的并导致失败.没有合并回1 di.xml并且错误得到解决.
:-)
小智 0
我遇到了同样的问题,我的问题与文件所有权有关。您的问题可能与我的不同,但我分享我的经验,以防它可以帮助您或其他人。在浏览器检查器控制台中指定的错误是:
无法加载资源:服务器响应状态为 403(禁止)
诸如Magento_Ui/js/grid/search/search或 之类的文件Magento_Ui/js/grid/massactions没有被加载,因为当前文件所有者没有运行网络服务的合法权限。我咨询了Magent Devdocs并解决了权限问题。
| 归档时间: |
|
| 查看次数: |
6311 次 |
| 最近记录: |