WSOD on install with cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array

Created on 4 February 2023, over 1 year ago
Updated 22 August 2023, 10 months ago

Problem/Motivation

the line in code is:
$element = $element->getValue()[$key];

Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in mysite/html/core/lib/Drupal/Core/Config/Schema/ArrayElement.php on line 69

#0 mysite/html/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php(84): Drupal\Core\Config\Schema\ArrayElement->get()
#1 mysite/html/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php(137): Drupal\config_inspector\ConfigInspectorManager->checkValue()
#2 mysite/html/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php(137): Drupal\config_inspector\ConfigInspectorManager->checkValue()
#3 mysite/html/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php(137): Drupal\config_inspector\ConfigInspe" while reading response header from upstream, client: IP, server: mysite.com, request: "GET /admin/config HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/?check_logged_in=1"

Steps to reproduce

Installed a brand new open social site
(updated steps)
I installed via composer
I enabled config_inspector via drush
i goto /admin/config
WSOD
uninstall config_insprector and no error and no WSOD

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

Production build 0.69.0 2024