修复缺失模块Drupal 9警告



当我从D8升级到D9时,我会收到丢失的模块消息,如:

The following modules are marked as installed in the core.extension configuration, but they are missing:
config_split_manager
scroll_to_top
splashify
theme_change

所以我尝试了各种方法:

  • 安装并使用module_missing_message_fixer
  • 通过drush:sql-query执行sql请求;DELETE FROM key_value WHERE collection='system.schema'AND name='config_split_manager'">
  • 做一个受启发的自定义模块https://www.drupal.org/node/2487215

结果是:

  • 对于MMF:
[warning] The following module is missing from the file system: scroll_to_top bootstrap.inc:222
[warning] The following module is missing from the file system: splashify bootstrap.inc:222
[warning] The following module is missing from the file system: theme_change bootstrap.inc:222
Don't forget to export your config
Don't forget to export your config
Don't forget to export your config
[warning] A non-numeric value encountered Output.php:145
[warning] A non-numeric value encountered Output.php:148
All missing references have been removed.

其他两种方式都没有。在DB记录中,引用仍然存在。。我还能做些什么来删除这些数据库?

感谢

前段时间在我的网站上安装一些模块时遇到了类似的问题,下面的cmd在我的情况下成功了:

drush config:delete core.extension module.MYMODULE

关于drush config:delete结账的更多信息:

  • https://www.drush.org/latest/commands/config_delete/
  • https://drushcommands.com/drush-9x/config/config:delete/

相关内容

  • 没有找到相关文章

最新更新