cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade Error: 2.3 to 2.4.2 create() null file Category/DataProvider.php

Upgrade Error: 2.3 to 2.4.2 create() null file Category/DataProvider.php

Have upgraded from magneto2.3 to Magento 2.4.2

getting following error when open "Categories In Admin"

 

main.CRITICAL: Error: Call to a member function create() on null in
/public_html/vendor/magento/module-catalog/Model/Category/DataProvider.php:663

 

Can anyone suggest a solution?

1 REPLY 1

Re: Upgrade Error: 2.3 to 2.4.2 create() null file Category/DataProvider.php

Hi @usercm,

 

Find the find by entering this path: 

/public_html/vendor/magento/module-catalog/Model/Category/DataProvider.php 

 

After that, find line 663 and replace: 

Converted into

$config = $this->uiConfigFactory
            ->create(['componentName' => 'category_form'])
            ->get($referenceName);

Hope this can help you! Let me know if you need further assistance.

__________

If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/