General error: 1364 Field 'uid' doesn't have a default value: INSERT INTO "users" ("uuid", "langcode")

Created on 16 October 2021, about 3 years ago
Updated 8 March 2023, almost 2 years ago

Hi team,
After updated drupal core 9.2.7 to Drupal core 9.3.0-dev then i m geting this error when i creating user programmitically :

Drupal\Core\Entity\EntityStorageException: SQLSTATE[HY000]: General error: 1364 Field 'uid' doesn't have a default value: INSERT INTO "users" ("uuid", "langcode") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => 2915c99c-e94a-4278-ba9a-422138180788 [:db_insert_placeholder_1] => en ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 810 of /var/www/conf_2021/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Also How I can degrade drupal core via composer and revert the drupal update.

💬 Support request
Status

Fixed

Version

9.3

Component
Database 

Last updated 2 days ago

  • Maintained by
  • 🇳🇱Netherlands @daffie
Created by

🇮🇳India Rohit bharti

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

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.71.5 2024