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

CommentFileSizeAuthor
#10 kint.info.zip3.97 KBwebdrips
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thierry_capouillez created an issue. See original summary.

thierry_capouillez’s picture

Issue summary: View changes
longwave’s picture

Category: Bug report » Support request
Status: Active » Fixed

Before 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.

thierry_capouillez’s picture

Thanks.
Since I got directly to version 4.1.1, I didn't saw the notice.
By the way, it solved my issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

scripter81’s picture

Hi,
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.

l_holmes’s picture

I 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.

alyaj2a’s picture

Answer #3 is right! ty!

zorax’s picture

I create a "kint" module width drupal generate:module.
Then drush pmu kint
it works !

webdrips’s picture

FileSize
3.97 KB

I'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.

rpc5102’s picture

Thanks, @webdrips #10 helped uninstall the kint module.

quotientix’s picture

Thanks @webdrips, worked for me as well!

byacoubi’s picture

if 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

dwcdev’s picture

#13 worked for me.

omarsidd’s picture

Thanks 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.

Juc1’s picture

I 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

aangel’s picture

Last line in the kint.info.yml file has spaces that can't be there. Use:
core_version_requirement: ^8.8 || ^9