I am getting the following error.

Recoverable fatal error: Argument 3 passed to Drupal\page_manager\Routing\VariantRouteFilter::__construct() must be an instance of Symfony\Component\HttpFoundation\RequestStack, none given, called in /home/ranjith/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 266 and defined in Drupal\page_manager\Routing\VariantRouteFilter->__construct() (line 64 of sites/all/modules/contrib/page_manager/src/Routing/VariantRouteFilter.php).

What does it mean? How can I fix that error?

  • Hey, welcome to Drupal Answers. We’d love to help you. To improve your chances of getting an answer, please follow these rules: How do I ask a good question?. Thanks
    – leymannx
    Jul 6, 2018 at 7:25
  • The question is actually fairly clear and the answer too: You need to update the page_manager module to the latest version (and other contrib modules possibly too)
    – Berdir
    Jul 6, 2018 at 10:06

1 Answer 1


What you're seeing is the result of the Drupal service container failing to create a service because its cached definition doesn't match the class anymore: An extra constructor argument was added (in this change), and Drupal is not passing that argument.

This is a typical error that can happen after updating modules. Make sure to completely empty your cache manually. You might be able to do this using drupal cr all or drush cr or by visiting the admin backend, but not if the service is already loaded during bootstrap. In that case, try to empty the cache_container database table directly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.