- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2018
09:05 PM
06-10-2018
09:05 PM
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'.
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2018
09:30 PM
06-10-2018
09:30 PM
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 !
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018
04:30 AM
09-19-2018
04:30 AM
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.