Got this error when access /admin/config/media/lazyloader/exclude page

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "domain.negotiator". in Drupal\Component\DependencyInjection\Container->get() (line 153 of core/lib/Drupal/Component/DependencyInjection/Container.php).

seems its related to google tag manager

Comments

zhezhangrandy created an issue. See original summary.

zhezhangrandy’s picture

Issue summary: View changes
zhezhangrandy’s picture

Looks like line 157 on src/Form/AdminExclude.php file was causing the issue.

There is a method called buildVisibilityInterface calls $this->conditionManager->getDefinitions();

Look like the Context Aware Plugins that provide visibility conditions should use getFilteredDefinitions().

Updated the line to $this->conditionManager->getFilteredDefinitions(‘lazyloader’);

things work properly now.

zhezhangrandy’s picture

StatusFileSize
new893 bytes