So I am a dork and when I installed modules in my new 5.1 installation I stuck to my 4.7 ways and installed all my contrib modules in the main module directory. I just read that this is not best practice. I should have read more of the handbook earlier!

What's the best way to fix myself? I tried to just move one and see what happened and it didn't work, the site loaded with a blank page. That being said it was really a quick test and I did not disable the module before I moved it.

Has anyone done this before? My thought is that I have to disable all the contrib modules, move them and them run update.php. Am I right or am I hosed? I'd rather not trash the install by pulling another goof ball move.

I'll be the test monkey if I have to, but figured I'd ping the community first. Thanks!

Comments

vm’s picture

disable the module, move it reenable the module.

Only move one module at a time.

hectorplus’s picture

I just moved my modules to sites/all/modules a couple of days ago. I did not have to disable them. I did it starting with the least important ones, then the last ones, like CCK and CFKEditor. One of my menus went blank, but i solved it by refreshing my browser.

The move was smooth. I wouldn't suggest it my way though.

Youfolder.com
Share what's in your folder for the Hispanic community in Canada.

dailypress’s picture

I am currently updating my Drupal and have faced the same problem.

Just to double check: So when you say disable them, should I uninstall them as well and remove the folders off my server and basically re-install?

vm’s picture

no, if you uninstall them, you will lose the data that they are storing in the database.

you may even be able to move them without disabling as I've done this a few times. Just move the folder. visit administer -> modules forcing drupal to readjust by reading the .info files and picking up the new location.