Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 618 Vote(s) - 3.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drupal - moving module folder

#11
Drupal versions up to D6 kept module location in the system table, but starting from D7 there're multiple places where path is recorded (e.g. `registry` and `registry_file` tables) so just moving the folder and clearing cache will not do it, most probably will lead to significant problems.

A sequence of steps you can try:

1. Backup your database
2. Check-in your code into version control
3. Run following queries:

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')

4. Move folders
5. Run: `drush cc all`
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through