cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming a module reverts back when setup/upgrade

SOLVED

Renaming a module reverts back when setup/upgrade

I want to change the name of my new module and whenever I run php bin/magento setup/upgrade it reverts back to my old name. I've changed the name everywhere in my code to my knowledge and it still reverts back. 

 

Any help would be appreciated. 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Renaming a module reverts back when setup/upgrade

Hello @greg_taylor

 

make sure you rename module name each module like mainly registation.php

 

then remove module name from config.php and then remove from setup_module and try setup:upgrade command and check it

 

Hope it will help you. if works then mark as solution.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

View solution in original post

Re: Renaming a module reverts back when setup/upgrade

Hi @greg_taylor

 

I understand the problem you are facing !

 

As you mention that you have change the Module Name from everywhere - then you also need to change the Name of NameSpace as well , Meaning your main directory Name.

 

So rename your VendorName and ModuleName with New name of the module

 

Also you need to change this moduleName from etc/module.xml file and registration.php file as well

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

2 REPLIES 2

Re: Renaming a module reverts back when setup/upgrade

Hello @greg_taylor

 

make sure you rename module name each module like mainly registation.php

 

then remove module name from config.php and then remove from setup_module and try setup:upgrade command and check it

 

Hope it will help you. if works then mark as solution.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Renaming a module reverts back when setup/upgrade

Hi @greg_taylor

 

I understand the problem you are facing !

 

As you mention that you have change the Module Name from everywhere - then you also need to change the Name of NameSpace as well , Meaning your main directory Name.

 

So rename your VendorName and ModuleName with New name of the module

 

Also you need to change this moduleName from etc/module.xml file and registration.php file as well

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution