Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\jsonapi_include\JsonapiParse->parseJsonContent()

Created on 9 August 2022, about 2 years ago
Updated 12 September 2023, about 1 year ago

Problem/Motivation

For Drupal 9.4 version with PHP8.1, when user access any endpoint with default include empty, throws the below error:

Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\jsonapi_include\JsonapiParse->parseJsonContent()

Steps to reproduce

Access any endpoint with default include empty to reproduce this bug.

Proposed resolution

Validate if the include parameter from query string is empty

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Closed: won't fix

Version

1.5

Component

Code

Created by

🇧🇷Brazil fadonascimento

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