cancel
Showing results for 
Search instead for 
Did you mean: 

blog module error

blog module error

Has anyone seen this error and how to fix it?

Autoload error

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'.

2 REPLIES 2

Re: blog module error

Hi

looking at the error log you posted , it seems like you have installed magefan_blog module and two times/two locations ..

one is vendor/magefan/blog
second is app/code/magefan/blog

when we installed any extension using composer its installed in vendor directory..

when we manually installed then it is app/code directory ..

so to resolve this error , I would suggest you to remove magefan_blog extension from vendor directory ..

then after run below commands in sequence ..

php bin/magento setup:upgrade
php bin/magento setup:di:complie
php bin/magento cache:clean
php bin/magento cache:flush..


it will resolve this error and works for you !
if issue solved,Click Kudos & Accept as Solution

Re: blog module error

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

  • app/code/Magefan/Core
  • vendor/Magefan/core-m2

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.