Hi, I need to run a booking module for anonymous users. However, when I make a reservation as an anonymous person, I get the error that I do not have any user assigned. The error below:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null: INSERT INTO "booking_contact" ("uuid", "email", "uid", "party_size", "booking_instance", "checked_in") 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); Array ( [:db_insert_placeholder_0] => d664ab62-b1a0-4f98-8a07-fcf81d973702 [:db_insert_placeholder_1] => biuro@e-jankowska.pl [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => 858 [:db_insert_placeholder_5] => 0 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 811 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
In addition, is it possible to send an e-mail to an anonymous user with the option of canceling your booking?
Thanks for the help.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | bookable_calendar-20220817-1.patch | 2.25 KB | Mirek_Sabiniewicz |
Comments
Comment #2
josh.fabeanHi, thanks for the bug report. I should be able to get that fixed shortly.
Comment #3
Katarzyna_Starzynska commentedHi. We already have the patch ready. We will throw it into your verification in a moment.
Comment #4
Mirek_Sabiniewicz commentedHi :)
A patch that resolved in our case:
Comment #6
josh.fabeanThank you very much. I tested, and that patch works and is pushed to 2.1.3 and 2.1.x.
Comment #7
josh.fabean