Get deprecated function: parse_str() after login

Created on 31 October 2022, almost 2 years ago
Updated 19 July 2023, about 1 year ago

Problem/Motivation

Showing message
Deprecated function: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in _contextual_id_to_links() (line 214 of /core/modules/contextual/contextual.module)
PHP 8.1 plus D9.4.8

Steps to reproduce

contextual.module is showing this message after doing login here /user

I'm using Ubuntu with Drupal 9.4.8 and PHP 8.1

Proposed resolution

Doing patch to fix issue on the line 214 of contextual module core, from this:

    parse_str($metadata_raw, $metadata);

to this:

    if (!empty($metadata_raw)) {
      parse_str($metadata_raw, $metadata);
    }

Behavior expected

Login without the reported message.

๐Ÿ› Bug report
Status

Closed: outdated

Version

9.5

Component
Contextualย  โ†’

Last updated 3 days ago

  • Maintained by
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia @larowlan
Created by

๐Ÿ‡จ๐Ÿ‡ดColombia angelgarciaco Bogotรก, Colombia

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.

Production build 0.71.5 2024