Closed (duplicate)
Project:
Facets
Version:
3.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2026 at 10:20 UTC
Updated:
19 Aug 2026 at 20:56 UTC
Jump to comment: Most recent
Facets 3.0.4 introduces a fatal error on any Drupal 10 site:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "Drupal\Core\Theme\ThemePreprocess".
This is triggered whenever facets_preprocess_facets_item_list() runs, i.e. on any page rendering a facet, facets summary, or facets search box widget.
The cause is commit 99775089, for issue
#3589162 Support special hierarchy processors as exposed filters:
\Drupal::service(ThemePreprocess::class)->preprocessItemList($variables);Drupal\Core\Theme\ThemePreprocess does not exist in Drupal core 10.x, it's a D11-only service.
Facets 3.0.4 still declares core_version_requirement: ^10.1 || ^11, so this
release is incorrectly marked as D10 compatible.
Result: "The website encountered an unexpected error. Try again later."
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "Drupal\Core\Theme\ThemePreprocess". in Drupal\Component\DependencyInjection\Container->get() (line 159 of /docroot/core/lib/Drupal/Component/DependencyInjection/Container.php).
Comments
Comment #2
danchamp commentedComment #3
liam morland