php8.1 compatibility - Passing null to parameter #1 ($string) of type string is deprecated

Created on 25 July 2022, over 2 years ago
Updated 19 July 2024, 5 months ago

Problem/Motivation

Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\DefaultSitemapGenerator->addUrl() (line 127 of modules/contrib/simple_sitemap/src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php).

Proposed resolution

Small fix that first checks if image title is set.

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

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.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024