I've got a M2.2.1 store and when I get an order, I cannot see the details in the backed.
Each time I click on an order to see the details, I get the following error message :
Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in C:\wamp64\www\magento2\vendor\magento\framework\View\Element\UiComponentFactory.php on line 198 and defined in C:\wamp64\www\magento2\vendor\magento\framework\View\Element\UiComponentFactory.php:164 Stack trace: #0 C:\wamp64\www\magento2\vendor\magento\framework\View\Element\UiComponentFactory.php(198): Magento\Framework\View\Element\UiComponentFactory->argumentsResolver('sales_order_vie...', NULL) #1 C:\wamp64\www\magento2\vendor\magento\framework\View\Layout\Generator\UiComponent.php(135): Magento\Framework\View\Element\UiComponentFactory->create('sales_order_vie...', NULL, Array) #2 C:\wamp64\www\magento2\vendor\magento\framework\View\Layout\Generator\UiComponent.php(97): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), 'sales_order_vie...', Array, Object(Magento\Framework\ in C:\wamp64\www\magento2\vendor\magento\framework\View\Element\UiComponentFactory.php on line 164
Can anybody help me?
Solved! Go to Solution.
you have issue of Factory classes/Method.
to resolve the issue kindly follow the below steps :
Then check , It will works !!
Thanks for your quick reply.
I tried your solution, but it did not change anything at all. I still have the same error message.
Do you have any other idea?
okay i understand - so could you please confirm , you have any custom module in your magento 2 directory or you have custom theme for the same ?
Sometimes when this does not work you should check all classes passed as an arguments to the __construct method, seems some of it is incorrect.
Thanks again for your help. I'm sorry, but I'm not an expert, so I do not know what do you mean with
"Sometimes when this does not work you should check all classes passed as an arguments to the __construct method, seems some of it is incorrect."
I'm using LUMA standard Theme.
The extra modules I've installed are :
Does this help you to find out the problem?
okay i understand !!! so as mention by you, you have multiple custom module installed.
so might be one of module have issue with your setup , so do one thing kindly disabled your module one by one and check that it is working or not.
you can disable module by two ways :
Either running command - php bin/magento setup:module:disable VendorName_Module
Second thing edit your config.php find those module do 1 to 0 its value
then run setup:upgrade command and check.
once you find the issue which module is conflicting then keep that module as disable and enable all other modules.
It will works !!
Unfortunately, I did not succeed to find out which module generated the bug. Thus, I made a brand new installation of M 2.2.3 and everything is ok now.
Thanks for your help.
Glad to know that you have resolved your issue !!
happy to help and keep helping