Moving Drupal modules from sites/all/modules to sites/all/modules/contrib

If you move your local repository of Drupal modules from sites/all/modules to sites/all/modules/contrib you may find that your site dies with error messages like "failed opening required". This is because Drupal stores the location of the module files in system and registry tables in the database. If this sounds like you, here is the SQL you need: update system set filename = replace(filename,'sites/all/modules','sites/all/modules/contrib'); update registry set filename = replace(filename,'sites/all/modules','sites/all/modules/contrib'); update registry_file set filename = replace(filename,'sites/all/modules','sites/all/modules/contrib');

Categories: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.