cancel
Showing results for 
Search instead for 
Did you mean: 

Class Magento\User\Model\UserFactory does not exist

Class Magento\User\Model\UserFactory does not exist

Hi,

I have installed magento on the localhost by using XAMPP.

After completing all steps I am getting below error,

Class Magento\User\Model\UserFactory does not exist
2 REPLIES 2

Re: Class Magento\User\Model\UserFactory does not exist

You need to remove var/generation folder if your Magento version is less than Magento 2.2 and if your Magento version is Magento 2.2.* You need to remove generated folder except .htacess file and clear cache.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Class Magento\User\Model\UserFactory does not exist

This issue also occured for me with a fresh install of bitnami's magento 2.2.3 virtual machine/appliance.

I can confirm that pooja_kumari's solution worked in this case, too.