PHP 8.1 Deprecated function: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 30 December 2022, over 2 years ago
Updated 25 January 2023, about 2 years ago

Problem/Motivation

Using PHP 8.1 we can got an error:

Deprecated function: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated in FacetApiPrettyPathsCoderDefault->encodePathSegment() (line 24 of [modules_path]/facetapi_pretty_paths/plugins/coders/facetapi_pretty_paths_coder_default.inc).

Proposed resolution

Add an additional check for the value.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine tibezh

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

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