PHP Warning on some administration pages: ID already defined.

Created on 25 January 2024, about 1 year ago

Problem/Motivation

Good morning everyone, while performing a fresh installation of Drupal 10.2.2 on a local machine, on some administration pages (configuring the Event and Error Log with 'All messages'), I receive the following Warning: Warning: DOMElement::setIdAttribute(): ID already defined in Masterminds\HTML5\Parser\DOMTreeBuilder->startTag().
In fact, by going for example to the 'Structure > Block Layout' page and inspecting the page, I found duplicated HTML IDs for some elements, such as <div id="edit-blocks-region-header-title"> and the subsequent link <a id="edit-blocks-region-header-title">.

Steps to reproduce

In some different configurations, the issue seems not to occur, anyway, here are the steps:
- Download and manually install Drupal 10.2.2 with a basic installation
- Enable all error reporting
- Navigate to the 'Structure > Block Layout' page or edit a new node

Proposed resolution

Remove duplicated HTML IDs

🐛 Bug report
Status

Active

Version

10.2

Component
Base 

Last updated about 1 hour ago

Created by

🇮🇹Italy davidebarbato

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024