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()
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3386932-9.patch | 1017 bytes | ajay gadhavana |
Issue fork eu_cookie_compliance-3386932
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3386932-php-8.1-deprecated-function-explode
changes, plain diff MR !124
Comments
Comment #2
ankondrat4 commentedComment #4
ankondrat4 commentedHello.
I have created issue fork and fix deprecated function: explode() as proposed here https://stackoverflow.com/questions/71097927/php-8-1-explode-passing-nul...
Comment #5
ankondrat4 commentedComment #6
ankondrat4 commentedComment #7
ankondrat4 commentedComment #8
ankondrat4 commentedComment #9
ajay gadhavana commentedI have fixed this, right now fixed for two places where it was generating an error.
Comment #10
svenryen commentedHi!
Thanks for the patch and merge request. I tested in D8, D9 and D10 and seems like this one is good to go.
Comment #12
svenryen commentedFixed.