PHP 8.1: Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in _eu_cookie_compliance_extract_category_key_label_description()

Created on 13 September 2023, 10 months ago
Updated 15 October 2023, 9 months ago

Problem/Motivation

Hello.

I found some issue related to requirements of PHP 8.1
Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in _eu_cookie_compliance_extract_category_key_label_description() (line 709 of modules/contrib/eu_cookie_compliance/eu_cookie_compliance.module)

Steps to reproduce

Install and configure EU Cookie Compliance (GDPR Compliance)
Enable logs in live stream
Open project by anonymous and don't press to pop-up window of EU Cookie Compliance (GDPR Compliance)
Go to some page of project
Get warning of deprecated function: explode()

💬 Support request
Status

Fixed

Version

1.24

Component

Code

Created by

🇺🇦Ukraine ankondrat4

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.69.0 2024