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

Preview does not work because of non-existent service "ezpublish_legacy.kernel"

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • Customer request
    • 5.4.5
    • 5.x > Legacy IO
    • None
    • eZ Publish 5.4.5

    Description

      The content preview function doesn't work on 5.4.5, returning a 500 error.
      On PROD we get the following:

      Oops! An Error Occurred
      The server returned a "500 Internal Server Error".
      Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. 
      

      On DEV we get:

       You have requested a non-existent service "ezpublish_legacy.kernel". Did you mean one of these: "ezpublish_legacy.router", "ezpublish_legacy.kernel.lazy_loader", "ezpublish_legacy.kernel_handler.web", "ezpublish_legacy.kernel.lazy"?
      500 Internal Server Error - ServiceNotFoundException 
      

      Stack trace:

      [1] Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "ezpublish_legacy.kernel". Did you mean one of these: "ezpublish_legacy.router", "ezpublish_legacy.kernel.lazy_loader", "ezpublish_legacy.kernel_handler.web", "ezpublish_legacy.kernel.lazy"?
          at n/a
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php line 300
      
          at Symfony\Component\DependencyInjection\Container->get('ezpublish_legacy.kernel')
              in /var/www/ezpublish54_EZP-23883/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php line 316
      
          at eZ\Publish\Core\MVC\Legacy\Kernel\Loader->resetKernel()
              in /var/www/ezpublish54_EZP-23883/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/EventListener/ConfigScopeListener.php line 38
      
          at eZ\Bundle\EzPublishLegacyBundle\EventListener\ConfigScopeListener->onConfigScopeChange(object(ScopeChangeEvent), 'ezpublish.config.scope_restore', object(TraceableEventDispatcher))
              in  line 
      
          at call_user_func(array(object(ConfigScopeListener), 'onConfigScopeChange'), object(ScopeChangeEvent), 'ezpublish.config.scope_restore', object(TraceableEventDispatcher))
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php line 61
      
          at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ScopeChangeEvent), 'ezpublish.config.scope_restore', object(ContainerAwareEventDispatcher))
              in  line 
      
          at call_user_func(object(WrappedListener), object(ScopeChangeEvent), 'ezpublish.config.scope_restore', object(ContainerAwareEventDispatcher))
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 158
      
          at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'ezpublish.config.scope_restore', object(ScopeChangeEvent))
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 46
      
          at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('ezpublish.config.scope_restore', object(ScopeChangeEvent))
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php line 124
      
          at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('ezpublish.config.scope_restore', object(ScopeChangeEvent))
              in /var/www/ezpublish54_EZP-23883/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Helper/ContentPreviewHelper.php line 96
      
          at eZ\Publish\Core\Helper\ContentPreviewHelper->restoreConfigScope()
              in /var/www/ezpublish54_EZP-23883/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 116
      
          at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('150', '4', 'eng-GB', 'ezdemo_site_user')
              in  line 
      
          at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('150', '4', 'eng-GB', 'ezdemo_site_user'))
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 139
      
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 62
      
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69
      
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/ezpublish54_EZP-23883/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 184
      
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
              in /var/www/ezpublish54_EZP-23883/web/index.php line 77
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: