Deprecated: strnatcasecmp(): Passing null to parameter #2 ($string2) of type string is deprecated in /var/www/html/docroot/core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php on line 95

Created on 27 June 2024, 4 months ago
Updated 27 August 2024, about 2 months ago

Problem/Motivation

Deprecated: strnatcasecmp(): Passing null to parameter #1 & #2 ($string2) of type string is deprecated in /var/www/html/docroot/core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php on line 95

Steps to reproduce

  1. Enable layout builder and layout builder plus for a vocabulary
  2. Go to admin/structure/types/manage/taxonomy_term.{VOCAB}.default/promoted-blocks
  3. See message

Proposed resolution

Cast the comparison values to string in docroot/core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php on line 95, ala:

return strnatcasecmp((string) $a[$label_key], (string) $b[$label_key]);
πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated about 6 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States EthanT Sarasota, Florida

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024