Upgrading to Drupal 9.3.x changes users table and locks users out of the site

Created on 9 February 2022, over 2 years ago
Updated 16 January 2024, 6 months ago

Problem/Motivation

Drupal\Component\Plugin\Exception\ContextException: The 'entity:user' context is required and not present. in Drupal\Core\Plugin\Context\Context->getContextValue() (line 73 of core\lib\Drupal\Core\Plugin\Context\Context.php).

Upgrading to Drupal 9.3.0 or higher versions from 9.2.10 does something to the uid column that locks the users out of the site. I couldn't log in with my administrator account after the upgrade so I had to reset the password using a php reset script. When I finally was able to log in, every row in 'admin/people' tab was empty except for the account that was created during Drupal installation. Please see attached screenshot.

Additionally, the site wasn't accessible to anonymous users after the upgrade. I had to manually add an anonymous user with uid 0 to solve that problem.

All of the users are basically locked out meaning their credentials do not work after the upgrade. I am running 4 Drupal instances on the same platform (Windows Server + MSSQL DB). I've had similar issues with all of them after the upgrade.

I found a thread that is possibly related.
https://www.drupal.org/project/drupal/issues/3258118#:~:text=The%20under... β†’ .

Drupal 9.3.0 introduced some database changes and user role dependencies - https://www.drupal.org/project/drupal/releases/9.3.0#:~:text=User%20role... β†’

I wonder if that has anything to do with it. Any idea when we might get a patch/version release to tackle this issue?

Steps to reproduce

1) Upgrade to Drupal 9.3.x from Drupal 9.2.10
2) Run update.php script through the URL
3) Try to log in once the database update is complete

πŸ› Bug report
Status

Fixed

Version

4.4

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada devKhairul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024