Problem/Motivation

explode() PHP error message occurs in the subtheme config settings when using PHP 8.1.

Steps to reproduce

  1. Launch a local site using PHP 8.1.
  2. Create a subtheme using bootstrap5 config settings.
  3. Install the subtheme.
  4. Go to the subtheme settings.
  5. The error message will appear.

Proposed resolution

Use the null coalescing operator, introduced in PHP 7, to default the value to an empty string if the value is null.

Issue fork bootstrap5-3276247

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

jasonfelix created an issue. See original summary.

jasonfelix’s picture

Status: Active » Needs review
StatusFileSize
new672 bytes

Created the fix for this issue.

mherchel’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new281.54 KB
new69.5 KB

Verified the error, the patch applies perfectly, and it resolves the error.

amstercad’s picture

The patch works for me also. Thank you for the nice, timely work!

jaydee1818’s picture

Patch works for me as well. Thanks.

mark lacroix’s picture

Score another one for this patch! Worked for me, too. Thanks!

vladimiraus’s picture

Version: 1.1.3 » 1.1.x-dev
Assigned: jasonfelix » Unassigned
Status: Reviewed & tested by the community » Fixed
vladimiraus’s picture

Thanks everyone!

Status: Fixed » Closed (fixed)

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