0

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

5
  • 1
    You can follow the this link : magento.stackexchange.com/questions/212655/… Commented Mar 13, 2019 at 7:06
  • But it's not showing for me Commented Mar 13, 2019 at 7:39
  • Show your code how you've tried. Commented 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 172 Commented Mar 13, 2019 at 9:46
  • magento.stackexchange.com/a/212656/73525 this answers Commented Mar 13, 2019 at 9:47

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.