简体   繁体   English

从自定义表中获取数据并在 magento2 的管理面板中的 grin 中获取数据时出现 TypeError

[英]Getting TypeError when fetching data from custom table and sho in grin in admin panel in magento2

getting error CRITICAL: TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in C:\xampp\htdocs\magento2\vendor\magento\framework\View\Element\UiComponentFactory.php on linecreating a grid in admin panel收到错误 CRITICAL: TypeError: 传递给 Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() 的参数 2 必须是数组类型,null 给定,在 C2:\xampp\madocsto\vendma 中调用\View\Element\UiComponentFactory.php 在管理面板中创建网格

It is getting a null instead of an array.它得到的是 null 而不是数组。

Try this:尝试这个:

Check in your code that if it is null it returns an empty array.检查您的代码,如果它是 null 它返回一个空数组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM