Deprecated function: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\regex_redirect\Form\RegexRedirectForm->setDefaultOptions()

Created on 1 February 2024, 11 months ago
Updated 25 May 2024, 7 months ago

Problem/Motivation

Deprecated function: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\regex_redirect\Form\RegexRedirectForm->setDefaultOptions() (line 149 of modules/contrib/regex_redirect/src/Form/RegexRedirectForm.php).

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\regex_redirect\Form\RegexRedirectForm->setRegexErrors() (line 218 of modules/contrib/regex_redirect/src/Form/RegexRedirectForm.php).

Steps to reproduce

PHP 8.1
Drupal 9.5.9 or Drupal 10.1.7

Go to /admin/config/search/redirect/regex/add.
Enter Title, Redirect source, and Redirect target.
Invoke Save button.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jay.silverman

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

Production build 0.71.5 2024