I am not sure if I should post this question in this forum.

I have a running drupal site and I use contributed modules. Unfortunately I placed the contributed modules in sites/site-1/modules in stead of sites/all/modules.

Now I am building a second website which uses many modules the first site uses as well. I want to use the multi site feature of Drupal. Therefore I need to move modules which are shared by both sites to sites/all/modules. I do this as follows:
1. make a backup (of course)
2. move module X from sites/site-1/modules/X to sites/all/modules/X
3. call www.site-1.com/update.php
4. call www.site-1.com/admin/build/modules and select "save configuration"

Module X is now up and running from location sites/all/modules/X. The problem is that the configuration of the module is completely lost. I do have this problem with e.g. CCK (fields I created are gone) and captcha.

Does anyone knows a solution to this? Is this a known problem or do I do something wrong?

Comments

bwv’s picture

I could not tell from your post: prior to moving module X, are you deactivating it? After moving module X, but before doing your update.php, are you reactivating it?

I recently worked on a site where all the third party modules were placed in the /modules directory. I first deactivated all third party modules. Then I moved all of them to sites/all/modules. Then I reactivated them in admin/build/modules, and all configurations were preserved.

Hope that helps you untangle things a bit.
----------------------------------------------------------------------
http://www.bwv810.com
http://davidhertzberg.com

I am a writer, researcher and solo drupal freelancer.
Je peux communiquer en français. / Я могу общаться на русском языке.

basby’s picture

Thank you for your reply!

I did not first deactivate the module. In the past I lost configuration settings when I updated to a new drupal version.
I will try however your suggestion. Thanks.

What exactly did you do after moving the modules? Did you only reactivate them? Or did you also execute update.php? Or anything else?

basby’s picture

I deactivated captcha, moved the code from sites/site-1/modules to sites/all/modules, reactivated captcha and voila, everything worked! Settings were preserved. I did the same with pathauto and again it works. This solution seems to work for me. Great!

Thanks again for your help!

basby’s picture

Everything I wanted to move has been moved! Even moving CCK did not give problems.
I am a happy man!

bwv’s picture

Congrats! All these module configurations are held in the system and/or variable tables in the db; if you poke around in those tables you will be able to see the paths to the modules.
----------------------------------------------------------------------
http://www.bwv810.com
http://davidhertzberg.com

I am a writer, researcher and solo drupal freelancer.
Je peux communiquer en français. / Я могу общаться на русском языке.