Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Quick Tip: Clean Up Your Drupal Modules Folder

Parent Feed: 

Let's say you inherit a Drupal site and the modules folder looks like this:

Dirty modules folder

And being an organized dev, you'd rather it look like this:

A nice organized modules folder

So you create a 'contrib', 'custom' and maybe a 'features' folder for good measure and move everything around.

Then your site blows up and starts giving you errors all over the place.

What happened?

You pulled a shell game on your site, moving modules around and not telling it where to look.

If you click the first Google link you find, you might end up thinking you need to disable all your modules before you move them, but who has that kind of time? The easy solution is to install Registry Rebuild, (just clearing your cache probably won't do it).

  1. Back up your database
  2. Install Registry Rebuild if you don't have it already
  3. Move folders
  4. Run 'drush rr'
  5. Return to your regularly scheduled programming
Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web