Using block_class module with language module throws $string ("") must be a string

Created on 18 August 2022, over 2 years ago
Updated 24 May 2024, 6 months ago

Problem/Motivation

When enabling block_class module, if the language module is already enabled and a new language installed (french in my case), drush outputs the message "In TranslatableMarkup.php line 132: $string ("") must be a string".

Version 2.0.0 does not produce this error.

The error message seems to be generated because the LocaleConfigManager.php (line 178) receives a boolean value to translate (instead of a string)

Some configuration info

  • Drupal 9.4.5
  • PHP 8.1
  • Drush 11.1.1
  • Install profile minimal
  • Linux OS

Steps to reproduce

Drupal was installed with the following commands:

  1. composer create-project drupal/recommended-project:^9 /var/www/html
  2. composer require drush/drush
  3. composer update
  4. drush site:install minimal […]

Installing block_class was done with the following commands:

  1. drush pm:enable language
  2. drush language:add fr
  3. composer require drupal/block_class:2.0.2
  4. drush pm:enable block_class
🐛 Bug report
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

🇫🇷France Zigazou

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024