๐Ÿ‡ฎ๐Ÿ‡ณIndia @vandanasom.123

Account created on 22 August 2012, over 12 years ago
#

Recent comments

๐Ÿ‡ฎ๐Ÿ‡ณIndia vandanasom.123

vandanasom.123 โ†’ made their first commit to this issueโ€™s fork.

๐Ÿ‡ฎ๐Ÿ‡ณIndia vandanasom.123

The error ContainerNotInitializedException occurs because the container is being accessed before it's fully initialized in Drupal.

If your custom module or the empowerid integration is trying to access Drupal services (\Drupal::service(), \Drupal::entityTypeManager()) too early (before the container is fully initialized), this error will occur.

Ensure youโ€™re not calling services in hook_enable(), hook_install(), or any code that runs too early in the lifecycle.

Fix:

1. Use Dependency Injection in your custom module instead of directly calling \Drupal::service() wherever possible.
2. Make sure you're not accessing services before Drupal is fully bootstrapped (e.g., not in hook_enable()).
3. Clear cache

๐Ÿ‡ฎ๐Ÿ‡ณIndia vandanasom.123

@orbmantell, thank you for the patch. However, I encountered the following error:

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2025-02-27/views_dependent_filters-3... โ†’

Please try the patch provided:

Production build 0.71.5 2024