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.

Issue fork colorapi-3418055

Command icon 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:

Comments

vtkachenko created an issue. See original summary.

vtkachenko’s picture

StatusFileSize
new467 bytes
vtkachenko’s picture

Status: Active » Needs review
StatusFileSize
new465 bytes

Fixed paddings.

podarok made their first commit to this issue’s fork.

  • podarok committed a3040000 on 8.x-1.x
    Issue #3418055 by vtkachenko, podarok: Deprecated: str_replace():...
podarok’s picture

Version: 8.x-1.2 » 8.x-1.x-dev
Status: Needs review » Fixed

tnx

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.