Has anyone seen this error and how to fix it?
Module 'Magefan_Blog' from '/var/www/html/magento/app/code/Magefan/Blog' has been already defined in '/var/www/html/magento/vendor/magefan/module-blog'.
Hi,
I have faced the same error while module installation. Actually, you have installed the magefan-blog module in two different locations. Try this solution
First, DELETE Core module from
Now, run the following command:
rm -rf vendor/magefan/core-m2
rm -rf app/code/magefan/Core
composer remove magefan/core-m2
composer dump-autoload
Hopefully, it will solve your issue.
Thanks.