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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2015.03
    • Component/s: None
    • Labels:
      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

            Assignee:
            Unassigned
            Reporter:
            edi.modric Edi Modrić
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: