Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24171

"You cannot create a service ("request") of an inactive scope ("request")." while running cache:clear command

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2015.03
    • None
    • None
    • None

    Description

      Due to missing lazy loading of ezpublish_legacy.legacy_cache_purger, legacy kernel (which is a dependency of said service) is being built with web handler instead of the CLI one, before LegacyKernelListener::onConsoleCommand has a chance to run and set the CLI legacy handler.

      Due to this, when running php ezpublish/console cache:clear, there's a following exception:

      eddie@abyss: ~/www/ezplatform $ php ezpublish/console cache:clear
      Clearing the cache for the dev environment with debug true

      [Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
      You cannot create a service ("request") of an inactive scope ("request").

      cache:clear [--no-warmup] [--no-optional-warmers]

      eddie@abyss: ~/www/ezplatform $

      Attachments

        Activity

          People

            Unassigned Unassigned
            f8f4635f-c125-4f25-94af-5c94e74ef8c1@accounts.ibexa.co Edi Modrić
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: