Drupal 7 Drupal 7:用户警告:文件系统中缺少以下模块

Drupal 7 Drupal 7:用户警告:文件系统中缺少以下模块,drupal-7,Drupal 7,我安装了Drupal 7,但出现了一条错误消息: User warning: The following module is missing from the file system: ajaxblocks. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-pre

我安装了Drupal 7,但出现了一条错误消息:

User warning: The following module is missing from the file system: ajaxblocks. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: menu_clone. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: prestashop_blog_feed. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: ps_search. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: ps_showcases_screenshots. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: ps_wp_fix_date. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: ps_youtube_filter. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: rabbit_hole. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: rh_file. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: rh_node. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: rh_taxonomy. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: rh_user. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
User warning: The following module is missing from the file system: publication_date. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1138 of /projet/site-prestashop-tma/includes/bootstrap.inc).
Notice: Use of undefined constant _IPB_COOKIE_PREFIX_ - assumed '_IPB_COOKIE_PREFIX_' in IPBUser::fetchMemberData() (line 10 of /projet/site-prestashop-tma/sites/all/modules/custom/ps_sso_ipb/class/IPBUser.php).
Error: Call to undefined function menu_clone_load() in _menu_load_objects() (line 603 of /projet/site-prestashop-tma/includes/menu.inc).

我阅读了文档,但不理解。

有两种方法可以修复这些错误

  • 将模块放回该位置,并通过superadmin登录,禁用并卸载其中的每一个模块
  • 或者(第二种方式需要适当的备份和mysql知识)

  • 更新系统表(删除包含警告的模块列表的所有行,如ajaxblocks、menu\u clone等)。这必须在对数据库/站点进行适当备份后完成
  • 您的查询将以这种格式显示

    DELETE FROM system WHERE name like "ajaxblocks" or name like "menu_clone";
    

    根据您收到警告的模块列表,or条件可能很多。

    我在站点上也有相同的错误,我在系统表中的DB中查看模块的路由。 因为您可以在两个路由中找到文件夹模块 /模块 /站点/所有/模块/

    然后您查看.module文件,在我的例子中,文件扩展名是.module,我更改了扩展名,它对我有效。

    可以派上用场

    如果你喜欢:


    如果您能够使用drush,可以查看此页面以了解完整的详细信息。如果你能尝试运行drush dre 2。从系统表中删除后无效。您需要清除所有缓存。这应该是可接受的答案。这对我很有效。是的,问题应该转移到drupal.stackexchange.com,在那里可以重新打开。
    drush en -y missing_module
    drush lmm  # list missing modules
    drush rmm  # remove missing modules