to fix \Drupal\Core\Render\Element\StatusMessages

Created on 17 May 2019, over 5 years ago
Updated 19 June 2024, 6 months ago

The following code needs to be fixed:
\Drupal\Core\Render\Element\StatusMessages::generatePlaceholder

 if ($element['#include_fallback']) {

to:

if (isset($element['#include_fallback']) && $element['#include_fallback']) {

This causes PHP to throw an Notice level error when the system is updated.
This will confuse site managers who are not familiar with PHP

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
RenderΒ  β†’

Last updated about 8 hours ago

Created by

πŸ‡¨πŸ‡³China yunke

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This came up as a daily target for the #Bugsmash initiative.

    Can you provide what php version you are experiencing this one?

    Also what steps are you taking that generates this error?

  • Status changed to Closed: cannot reproduce 6 months ago
  • πŸ‡¦πŸ‡ΊAustralia acbramley

    Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.

    As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" more than 1 year ago.

    Since further information has not been provided, I'm marking the issue "Closed (cannot reproduce)". If anyone can provide complete steps to reproduce the issue (starting from "Install Drupal core"), document those steps in the issue summary and set the issue status back to "Active".

    Thanks!

Production build 0.71.5 2024