- 🇧🇬Bulgaria joro78
We have the same problem on two sites. When enabling the customer profile on registration we receive an error.
We cannot add users neither on the standard way, nor when user tries to register after making an order.
System is Drupal 10.1.7
10.3.39-MariaDB
PHP 8.1.27
Multilingual systemErrors when trying to create user with enable in the registration form profile:
https://domain.ext/bg/checkout/4/complete
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null: INSERT INTO "profile" ("revision_id", "type", "uuid", "status", "uid", "is_default", "data", "created", "changed") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => customer [:db_insert_placeholder_2] => 434660fd-7d1a-4550-a89d-15c49ba69165 [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => a:0:{} [:db_insert_placeholder_7] => 1704815967 [:db_insert_placeholder_8] => 1704815967 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of /var/www/domain.ext/public_html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
https://domain.ext/bg/admin/people/create
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null: INSERT INTO "profile" ("revision_id", "type", "uuid", "status", "uid", "is_default", "data", "created", "changed") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => customer [:db_insert_placeholder_2] => 699cdefb-d987-4771-97aa-b05a3a192a9f [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => a:0:{} [:db_insert_placeholder_7] => 1704816118 [:db_insert_placeholder_8] => 1704816118 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of /var/www/domain.ext/public_html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).