[Resolved] Mageplaza_Core has been already defined #3
Comments
I get by deleting 'vendor/mageplaza/module-core' doesn't work though...the upgrade command doesn't even run. |
Same result as nsid32: nothing works and upgrade not working neither |
Hi @alejandromartincruz , You should follow the solution mentioned above: SolutionSee #3 (comment) |
I deleted |
You should delete both folders:
Keep folder |
Ok, so I delete and then:
Edit: finally it worked, but first I had to remove the line of the las module I added to composer.json |
|
if you're using any mageplaza language packs |
why are there two versions of the core module floating around? |
what's the permanent solution here? Everytime I do a new composer require core-m2 gets back in the mix |
To Resolve
|
this is the real correct answer. Many thanks for sharing! |
Is there a final solution? For the moment every time I do some
The only way to get around it is like @eddyonboard described, installing the new |
It's a combination of @eddyonboard and @imsamthomas posts I as it's resolved for me currently. Delete vendor/mageplaza/core-m2 |
@blizam I can confirm your answer is perfectly valid |
However I can not confirm. Every time I run composer and a dependency check is made, it will reinstall mageplaza/core-m2 So my solution was to run:
I also created a pull request to correct the composer.json |
Thanks @blizam @alen12345 @plastikschnitzer |
Information for anyone using theme Porto. If you use Porto theme you will get Mageplaza_Core has been already defined error. app/code/Mageplaza/Core are included in the Porto installation. I did these steps.
I dont know if it's ok to leave the app/code/Mageplaza/LayeredNavigation but it's disabled so it should not be any problem. |
@inelukipg It's all right, as long as you disable it (via module:disable), it won't run in any case. |
@gixid192 Ok! Do you know why there is different core modules from Mageplaza with different names? |
@inelukipg Sorry if that made you confused. As our business grows, we changed the name time to time. The reason is Magento offers 2 different ways of installing extensions so some installed by Composer, others prefer copy/paste method. |
@gixid192 Ok, but vendor/mageplaza/module-core is the latest version? |
@inelukipg oh yes, that's the latest name if you are using Composer. |
follow @inelukipg's answer #3 (comment) if have yourstore theme and try to install a lang package |
I can't not remove your core plugin I'm getting this error and Mageplaza_Affiliate is disabled as well as Mageplaza_Core. after doing this I also tried to remove the extention by doing composer remove mageplaza/module-core and I'm getting this error now PHP Fatal error: Class 'Mageplaza\Core\Helper\AbstractData' not found in /chroot/home/newcloud/cloudvdesign.com/html/app/code/Mageplaza/Affiliate/Helper/Data.php on line 20 Fatal error: Class 'Mageplaza\Core\Helper\AbstractData' not found in /chroot/home/newcloud/cloudvdesign.com/html/app/code/Mageplaza/Affiliate/Helper/Data.php on line 20 We want to remove this plugin completely because it simply doesnt work |
Your store cannot run without Mageplaza_Core module. You removed the old Core module, then you should install the new one via composer: Step 2 : Now run upgrade command line to resolve the issue.
|
@imsamthomas your solution on top works well for one time, but you need to update the Norwegian language pack to avoid the problems, every composer command re installs core-m2. Please merge the pull request asap - mageplaza/magento-2-norwegian-nynorsk-language-pack#3 |
@dinkeronline thanks for notifying us here. |
@imsamthomas Can you help me for install sociallogin_v2.4.0.1_ce_mageplaza extension in magento 2 store.in sociallogin_v2.4.0.1_ce_mageplaza extension ZIP file i have 2 folder -app, lib.i have read your all reply for install this extension(sociallogin_v2.4.0.1_ce_mageplaza).but i need help and Mageplaza_Core module i have zip file.when i have extract this file i have found |
just follow this Delete the following files, folders:: Run the following command line:: |
solution indicated by @imsamthomas worked. Thx! |
thanks @inelukipg, it works. |
im getting not core_m2 |
@thrmda The |
This comment was marked as disruptive content.
This comment was marked as disruptive content.
It worked for me .. thanks buddy |
Solution worked for me and saved my butt. Thank you so much!! |
When I implement this resolution (using porto) I get a lot of errors when running: php bin/magento setup:static-content:deploy -f For this reason, I have had to make sure to not use any other mageplaza extensions, unfortunately :( It was tested on 2.3.3. We are on 2.3.5-p1 now and I will test one more time, but I expect the result to be the same. Edit: I have tried on 2.3.5-p1 and it is now working properly. |
Thank you for the solution provided by @imsamthomas it worked perfectly, im using magento CE 2.3.5-p1 with Porto theme, production site. You saved my day! |
I got an error that Class Mageplaza\CustomerApproval\Console\Command\Approve\Interceptor does not exist. Please specify the solution |
If using Porto & Mageplaza Search module, try this: composer remove mageplaza/core-m2 composer require mageplaza/module-core |
For Mageplaza it is mandatory to have the Mageplaza_Core module. Thanks |
I had it, but in spite of having the Mageplaza_Core module, errors can still occur, because of various reasons such as using theme such as Porto where the Mageplaza_Search module comes bundled etc. |
im in magento 2.4. your module supports only magento 2.3.x ???? |
Few customers reported to us the following issue:
Issue
Module 'Mageplaza_Core' from
app/code/Mageplaza/Core
has been already defined invendor/mageplaza/core-m2
.Explain
There are 2 different ways to install Mageplaza extensions:
Because you installed Mageplaza Extensions via composer and now install by copying a package from our store.
In this case, it conflicts Core module. Now we are going to resolve this issue in 3 simple steps:
Solution
Step 1: You should DELETE Core module from
app/code/Mageplaza/Core
vendor/mageplaza/core-m2
(if any)Run the following command:
Step 2: Now install Mageplaza_Core again run upgrade command line to resolve the issue.
Step 3: Check result
Check the result, if there is still an issue, feel free to leave a comment here or contact us
The text was updated successfully, but these errors were encountered: