9

I just installed a distribution profile and ran Drush up to update modules.

I have some problems with the modules located at profiles/somefolder/modules: Drush moved out the old modules but no new modules are added.

Can I move the modules from profile folder to sites/all/modules?

The installation profile is Commerce Kickstart.

2

If the modules in question are not enabled you can move the modules.

The paths to their location in the system table in the database will be updated when you visit /admin/modules.

However, If they are enabled you may run into issues.

See http://drupal.org/node/183681

  • all modules all enabled. – chefnelone Jul 5 '12 at 14:05
  • 1
    do drush rr and drush cc all, try them with -v to show any messages. I think you will find that commerce kickstart modules has several dependencies in the profile folder so you wont be able to move everything. – 7wonders Nov 5 '12 at 17:07
  • FYI drush rr is not included by default in drush. – soulston Oct 10 '13 at 9:40
1

To further complete the prior answer ... As so often in Drupal: there's a module for it ... called "Registry Rebuild", also mentioned on the link in the prior answers. And it integrates with Drush via the Drush RR command.

Basically what you do is to (1) just move your modules to another directory, and (2) Registry Rebuild will then rebuild the system table to get the modules in the right place.

I first learned/discovered it via DrupalEasy Podcast #133, which also explains how this module /drush cmd comes in handy for these kinds of moves.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.