移动的模块文件,现在无法打开先前文件位置所需的文件

Moved module files, now getting failed opening required for previous file location

我正在组织我的 drupal 网站。我所有的模块都位于 /data/www-test/content/modules/。我创建了一个名为 "contrib" 的文件夹并将贡献的模块移到那里,这样剩下的就是这个目录是核心模块和其他 2 个目录(contrib 和我的自定义模块,我计划将它们移动到 sites/all/modules).

我意识到我应该先将我的站点置于维护模式并禁用模块。

我得到的第一个错误是关于 'cache_inc' 的位置,所以我修改了它(它在我的 settings.php 文件中)为 '/data/www-test/content/modules/contrib/memcache/ memcache.inc'.

现在,我收到以下错误:

Warning: require_once(dmemcache.inc): failed to open stream: No such file or directory in /data/www-test/content/modules/memcache/memcache.inc on line 4 Fatal error: require_once(): Failed opening required 'dmemcache.inc' (include_path='.:/usr/share/php5:/usr/local/lib/php') in /data/www-test/content/modules/memcache/memcache.inc on line 4

不过我很困惑,因为 memcache.inc 不再位于 /data/www-test/content/modules/memcache/。

如果您安装了 drush 运行 命令:drush registry-rebuild。 否则你可以只 t运行 缓存表:缓存和 cache_bootstrap (缓存可能不需要,我只是习惯这样做)。在 sql : t运行 缓存中; t运行分类cache_bootstrap;