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

时间:2017-06-21 11:26:26

标签: 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-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).

我阅读了文档,但我不明白。

3 个答案:

答案 0 :(得分:1)

missing module可以派上用场。

如果您进入drush

drush en -y missing_module
drush lmm  # list missing modules
drush rmm  # remove missing modules

答案 1 :(得分:0)

有两种方法可以解决这些错误。

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

    1. 更新系统表(删除包含模块列表的所有行,您有类似ajaxblocks,menu_clone等的警告)。必须在对数据库/站点进行适当备份后执行此操作。
    2. 您的查询将采用此格式

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

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

答案 2 :(得分:0)

我对一个站点有同样的错误,我在系统表中的DB上查看模块的路径。 因为你可以在两个路径中找到文件夹模块 /模块 /位点/所有/模块/

然后你查看.module文件,在我的例子中,文件扩展名为.modul,我更改了扩展名,它对我有用。