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


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

我正在组织我的drupal站点。我的所有模块都位于/data/www-test/content/modules/中。我创建了一个名为"contrib"的文件夹,并将贡献的模块移到了那里,所以只剩下这个目录是核心模块和另外两个目录(contrib和我的自定义模块,我计划将其移到sites/all/modules)。

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

我得到的第一个错误是关于"cache_inc"的位置,所以我将其修改为"/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,请运行命令:drushregistry-rebuild。否则,您可以截断缓存表:cache和cache_bootstrap(可能不需要缓存,我只是习惯性地这样做)。在sql中:截断缓存;truncate cache_bootstrap;