Deprecated: str_replace(): Passing null to parameter #3

Created on 30 January 2024, 10 months ago
Updated 29 February 2024, 9 months ago

Problem/Motivation

Notification:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in
/var/www/html/modules/contrib/colorapi/src/Service/ColorapiService.php on line 23

Steps to reproduce

For me appears for Color field attached to paragraph type.
1. Edit Node with paragraph field which contains Color field;
2. Add paragraph item;
3. Leave Color field empty;
4. Click "Collapse" button;
5. Error will be responded on ajax request;

Proposed resolution

Add validation for empty value before convert to Rgb value.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine vtkachenko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024