Issue Task Resolved

#111285Warn about and prevent site configurations without language 0

Oliver Bartsch 10/29/26, 22:30 updated 11/14/26, 10:05

Description

TYPO3 expects every site to configure languageId 0 as its default language. Since #99064, Site::getDefaultLanguage() returns language 0 regardless of its position and falls back to the first configured language if language 0 is missing. That keeps the frontend working, but other parts of TYPO3 (page module, translation handling) still assume language 0 exists.

Currently, nothing tells integrators that their site lacks language 0:
  • sites maintained in YAML only never get a warning
  • the Sites module only checks that at least one language is configured when saving; language 0 can be deleted in the form and the site is stored without it
Expected:
  • The Sites module shows an error for sites without language 0 in the overview and the site details.
  • Saving a site configuration without language 0 in the Sites module is refused with a clear message, and the form of the stored site (or the creation form for a new site) is shown again.
  • The frontend of existing sites keeps working (no exception).

Reviews 1

History 48

  1. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-14T10:05:12+00:00" > 11/14/26, 10:05 </span>

    Applied in changeset commit:4033fd6d92f47168ab29276a7f4974b6e0085776.