I want to add one button here
how I can add code??
and how to add action controller
Admin custom page any idea ??
i already tried this answer(https://magento.stackexchange.com/a/212656/73525) but showing error
Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/equpo2/vendor/magento/framework/View/Element/UiComponentFactory.php on line 206 and defined in /var/www/html/equpo2/vendor/magento/framework/View/Element/UiComponentFactory.php on line 172
-
1You can follow the this link : magento.stackexchange.com/questions/212655/…Amit Naraniwal– Amit Naraniwal2019年03月13日 07:06:54 +00:00Commented Mar 13, 2019 at 7:06
-
But it's not showing for meprabhakaran7– prabhakaran72019年03月13日 07:39:32 +00:00Commented Mar 13, 2019 at 7:39
-
Show your code how you've tried.Manashvi Birla– Manashvi Birla2019年03月13日 09:32:26 +00:00Commented Mar 13, 2019 at 9:32
-
i first created shows like the first comment (link) uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/equpo2/vendor/magento/framework/View/Element/UiComponentFactory.php on line 206 and defined in /var/www/html/equpo2/vendor/magento/framework/View/Element/UiComponentFactory.php on line 172prabhakaran7– prabhakaran72019年03月13日 09:46:02 +00:00Commented Mar 13, 2019 at 9:46
-
magento.stackexchange.com/a/212656/73525 this answersprabhakaran7– prabhakaran72019年03月13日 09:47:43 +00:00Commented Mar 13, 2019 at 9:47
1 Answer 1
Not directly related but having spent best part of 2 days wrestling with this error, finally figured it out by debugging the Magento core. Hopefully this will help someone else encountering this error.
uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given
Basically this error means it can't find the ui component XML file. I know, instead of just crashing with a error that means nothing, why not report that it can't find the XML for the component in question? That's just laziness.
Why didn't it find it? Because the module root view folder is named "view" and not "View". Some module root folders are capitalised others not. Why the inconsistency?
But then this issue goes back to Linus Torvolds who should not have made file/folder names case sensitive. Where's the value in making MyFolder different to myfolder!?! Probably more an oversight than an informed decision.
Explore related questions
See similar questions with these tags.