Problem/Motivation

trim(): Passing null to parameter #1 ($string) of type string is deprecated in block_list_override_block_alter()

Steps to reproduce

Module version 1.0.2, trying to add Block gives Error: trim(): Passing null to parameter #1 ($string) of type string is deprecated in block_list_override_block_alter()

Proposed resolution

It needs to add check while passing parameter to trim(), if null - pass ''.

CommentFileSizeAuthor
#2 block_list-override-3387760-1.patch844 bytesyugro
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

yugro created an issue. See original summary.

yugro’s picture

StatusFileSize
new844 bytes

There is still no check for a parameter passing to trim inside function block_list_override_plugin_filter_block__layout_builder_alter() of block_list_override.module

yugro’s picture

Assigned: yugro » Unassigned
Status: Active » Needs review

thhafner’s picture

Status: Needs review » Reviewed & tested by the community

Patch works as expected for me.

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

  • heddn committed 95794305 on 1.0.x authored by yugro
    Issue #3387760 by yugro, heddn: trim(): Passing null to parameter #1 ($...
heddn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the contributions

Status: Fixed » Closed (fixed)

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