Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Blocking error when trying to upgrade my drupal 8.9.11 site to 9.1.0
Steps to reproduce
- Put site in maintenance mode
- Upgrade the modules "Devel", "Permissions by term", "reCAPTCHA", "Social media share" and "Webform" to it's latests version.
- Upgrade the core and vendor and root files of Drupal
- execute update.php
Results :
Missing or invalid module
The following module is marked as installed in the core.extension configuration, but it is missing:
kint
Review the suggestions for resolving this incompatibility to repair your installation, and then re-run update.php.
I found out that the module "Kint" has been included in "Devel", so is not available as such for Durpal 9.
I didn't find where that reference is.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#10 | kint.info.zip | 3.97 KB | webdrips |
Comments
Comment #2
thierry_capouillez CreditAttribution: thierry_capouillez commentedComment #3
longwaveBefore upgrading Devel you should uninstall Kint. This is documented in the Devel 4 release notes: https://www.drupal.org/project/devel/releases/4.0.1
You will need to roll back to your 8.9.11 install and do this step first before upgrading everything else.
Comment #4
thierry_capouillez CreditAttribution: thierry_capouillez commentedThanks.
Since I got directly to version 4.1.1, I didn't saw the notice.
By the way, it solved my issue.
Comment #6
scripter81 CreditAttribution: scripter81 commentedHi,
I'm experiencing the same issue but I'm unable to roll back on the previous D8 version because the website it's not working anymore if i rollback.
Is there any other way to remove the Kint module from the system and complete the update.php?
I've already checked the key_value table in the DB and I'm not finding any reference about the Kint module (I guess module_missing_message_fixer removed it already).
EDIT:
I managed to fix this installing a "fake" empty module named kint. I was then able to unistall it from Drupal administration and procede with the update.
I know this is probably not correct but worked in my case.
Comment #7
l_holmes CreditAttribution: l_holmes as a volunteer and commentedI was in the same situation as scripter81. I followed his suggestion of creating a blank module name kint and then uninstalling that worked for me.
Thanks for your edit scripter81, much appreciated.
Comment #8
alyaj2a CreditAttribution: alyaj2a as a volunteer commentedAnswer #3 is right! ty!
Comment #9
zoraxI create a "kint" module width drupal generate:module.
Then drush pmu kint
it works !
Comment #10
webdrips CreditAttribution: webdrips commentedI'm attaching a mostly empty kint module that can be used to properly uninstall the module in case you're like me and missed #3.
Comment #11
rpc5102 CreditAttribution: rpc5102 commentedThanks, @webdrips #10 helped uninstall the kint module.
Comment #12
quotientix CreditAttribution: quotientix commentedThanks @webdrips, worked for me as well!
Comment #13
byacoubi CreditAttribution: byacoubi commentedif you have the same problem on a similar mosule follow the next steps:
1- Create a directory with the name of the module.example 'kint'
2- Create an .info.yml file example 'kint.info.yml' with the mandatory information example:
name: 'Kint'
description: 'description'
type: module
version: 'XXXX'
core_version_requirement: ^ 8.8 || ^ 9
thinks
Comment #14
dwcdev CreditAttribution: dwcdev commented#13 worked for me.
Comment #15
omarsidd CreditAttribution: omarsidd commentedThanks for the fixes suggested here.
Can we please try to avoid this kind of breaking change?
Or better yet, add handlers in the upgrade script for the predictable situation? Much easier to do that than to have the admins of two hundred thousand sites have to figure it out individually...
This is a module installed on many sites, and with it going to the shiny new versioning system, and drupal tools saying it's unsupported and this is the upgrade path-- that makes for predictable breakage. And of course the old versions are now hidden or unavailable being unsupported 🙄
In Drupal 6 I expected to be making fake modules so I can proceed. Not a 14 years later in D8/9.
Comment #16
Juc1 CreditAttribution: Juc1 commentedI am having the same problem upgrading Drupal 9 in 2022, fixed by the fake module suggestion #13 - it is crazy that a module that I do not use or want causes my upgrade to fail. Surely the upgrade script should say something like "module X not found - do you want to proceed without / uninstall module X?" I wish someone important would read the comment #15 by @omarsidd
Comment #17
aangel CreditAttribution: aangel at Performant Labs for Renesas Electronics Corporation commentedLast line in the kint.info.yml file has spaces that can't be there. Use:
core_version_requirement: ^8.8 || ^9