Fix null returns for Background colors with columns in Twig ~3

Created on 13 September 2023, about 1 year ago
Updated 12 December 2023, 10 months ago

Problem/Motivation

We started to get these errors.

Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter() (line 135 of modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module).

Warning: Undefined array key 1 in varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter() (line 138 of modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module).

Running:
- Drupal 9.5.10
- Varbase bootstrap paragraphs 9.0.12

Proposed resolution

  • Add a check on the background colors

Remaining tasks

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

9.1

Component

Code

Created by

🇺🇸United States jedgar1mx Detroit

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024