php8.1 deprecation warning function: trim(): Passing null to parameter #1

Created on 21 July 2022, over 2 years ago
Updated 11 February 2023, about 2 years ago

Problem/Motivation

Since the recent upgrade from Version 1.3 to 1.4 the following error message appears by trying to log in:

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in captcha_whitelist_ips_parse_values() (line 727 of modules/contrib/captcha/captcha.module).

Steps to reproduce

For the following system:
Ubuntu 20.04.4 LTS
Drupal 9.4.3
PHP 8.1.8
MariaDB 10.6.8
Upgrade using composer update. Present captcha Version 1.3 is upgraded to 1.4. Try to log in. => error message appears as mentioned above.

Proposed resolution

Fallback to captcha version 1.3

Remaining tasks

Check: line 727 of modules/contrib/captcha/captcha.module

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇩🇪Germany Kulturmensch

Live updates comments and jobs are added and updated live.
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.

  • 🇸🇮Slovenia KlemenDEV

    Using version 1.9, I still get this error logged:

    Passing null to parameter #1 ($string) of type string is deprecated in captcha_whitelist_ips_parse_values()

Production build 0.71.5 2024