Problem/Motivation
When using ajax search page with facets and with default search view there is an error in logs:
Error: Call to undefined method Symfony\Component\HttpFoundation\RequestStack::getMainRequest() in system_js_settings_alter() (line 705 of /app/web/core/modules/system/system.module)
Also this error is showing on the page with view that using facets and ajax filtering, error showed on each ajax request.
It started to happening after update to drupal core version 9.3.0
Steps to reproduce
1. Go to search page that uses default Search view and ajax.
2. Try to search anything.
3. After the search check console and Drupal logs to see the error.
Comments
Comment #2
Belialius commentedComment #3
cilefen commentedThis looks like an exact duplicate of a Facets issue. Can you confirm?
Comment #4
Belialius commentedYes, I can confirm that patch from related issue fixed the error. Thanks.