Deprecated function: strnatcasecmp(): Passing null to parameter #1 ($string1) of type string is deprecated on settings form

Created on 1 November 2023, about 1 year ago
Updated 29 May 2024, 7 months ago

Problem/Motivation

Deprecated function: strnatcasecmp(): Passing null to parameter #1 ($string1) of type string is deprecated

appears on the settings form, because we're using

$layouts = $this->layoutPluginManager->getSortedDefinitions();

there, if layout_builder module is enabled.

This issue tracks the core issue 🐛 Add missing category to Drupal\layout_builder\Plugin\Layout\BlankLayout and let modules and themes alter the list of layouts Fixed , where development and fixing should happen.
If layout_builder is not installed, everything is fine!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • 🇳🇿New Zealand quietone

    Changing the parent to related because making this a child issue means that core issue should not be closed until this is fixed. I check about this some time ago with the other core committers and there was agreement on this.

    Cheers

  • 🇩🇪Germany Anybody Porta Westfalica

    Thank you @quietone and sorry for my mistake. Happy to see this fixed then! :)

Production build 0.71.5 2024