implement hook_requirements to check if default domain (ID=0)

Created on 12 August 2011, over 13 years ago
Updated 17 September 2024, 4 months ago

Domain needs a domain record with ID=0.
The same issue is also known from anonymous user with ID=0.

There are some migration tools that destroy data integrity because inserting an undefined (NULL) record leads to creation of an autoincrement index.
Thus there's some risk that the default domain gets an arbitrary next autoincrement value and default domain with ID=0 is missing.

Missing default domain leads to complete misbehaviour and especially redirection loops on settings forms like
/admin/structure/domain/edit/$ID

I suggest to add a hook_requirements to check if the record exists.

Do you support this?

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇭Switzerland miro_dietiker Switzerland

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