Closed (fixed)
Project:
OpenTelemetry
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2026 at 00:16 UTC
Updated:
1 Apr 2026 at 07:55 UTC
Jump to comment: Most recent
Visit /admin/config/development/opentelemetry, get InvalidArgumentException: Missing required data for typed configuration: opentelemetry.settings in Drupal\Core\Config\TypedConfigManager->get() (line 85 of /var/www/drupal/digital/releases/digital-20260226-4/web/core/lib/Drupal/Core/Config/TypedConfigManager.php).
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
Comment #4
nickolajFix: Replace `TypedConfigManager::get()` with `createFromNameAndData()` in `SettingsForm::buildForm()`. The `get()` method throws `InvalidArgumentException` when config data is missing from storage, while `createFromNameAndData()` uses the already-loaded config data directly, avoiding the storage lookup.
Comment #5
murzComment #7
murzThe solution looks good, but it looks more like a workaround. The actual source of the issue is the missing configuration itself; the configuration should be created during the module install process, and there should be no cases when it can be missing, until something is really broken.
But okay, let's still merge this workaround to prevent fatal errors.