Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello:
In the window: test.dev/admin/config/domain/add
The name machine doesn't change to write the server name.
the error appears when filling in the second domain.
Drupal\Core\Entity\EntityStorageException: 'domain' entity with ID 'test_dev' already exists. en Drupal\Core\Entity\EntityStorageBase->doPreSave() (linea 425 de /var/www/test.dev/core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Comment | File | Size | Author |
---|---|---|---|
#6 | 2927568-domain-add-6.patch | 4.5 KB | agentrickard |
#5 | 2927568-domain-add.patch | 1.21 KB | agentrickard |
Comments
Comment #2
agentrickardThis report is not replicable as currently written. Please provide more detail about the steps taken -- data entered, number of domains created, hostnames entered. Note that the machine_name (which causes the error) is derived from the hostname, which must be unique.
This may have been fixed in #2912150: Relation not updated with machine name changes as well.
Comment #3
agentrickardHm, I see the "machine name does not change" piece now. I wonder why?
Comment #4
agentrickardMust be a change in Drupal 8.4.
Comment #5
agentrickardHere's a patch against dev. Not sure if it applies cleanly to alpha9.
Comment #6
agentrickardRevised patch with passing tests. Combining into https://github.com/agentrickard/domain/pull/385
Comment #7
mitrpaka CreditAttribution: mitrpaka as a volunteer commentedWas having the very same issue with fresh 8.4.2 and domain (latest dev) installation. Patch did resolve machine name issue while adding new domain record.
I guess this is partly due to regression from #2912150
Comment #8
agentrickardLooks like it. I'm working on tests now. Thanls!
Comment #10
agentrickardComment #11
Chismen CreditAttribution: Chismen as a volunteer commentedthanks, works fine !!