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

Installing legacy-bridge on top of eZ Platform doesn't work correctly

    XMLWordPrintable

Details

    Description

      Following the document, https://doc.ez.no/display/EZP/Installing+eZ+Publish+Legacy+on+top+of+eZ+Platform, I've found some typos apparently it refers "app/" folder when it actually should be "ezpublish/"

      Where it is

      ez_publish_legacy:
          behat_site_admin:
              legacy_mode: true
      
      ez_publish_legacy:
          system:
              behat_site_admin:
                  legacy_mode: true
      

      You'll also have to set "minimum-stability": "dev" in order to be able to run (No longer needed and to be avoided; see Important Note comment beneath)

      composer require ezsystems/legacy-bridge

      You may get the error

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

      when attempting to run console commands, a work around is:

      • Edit ezpublish/EzPublishKernel.php
      • At the end of the file add
      protected function initializeContainer() {
          parent::initializeContainer();
          if (PHP_SAPI == 'cli') {
              $this->getContainer()->enterScope('request');
              $this->getContainer()->set('request', new \Symfony\Component\HttpFoundation\Request(), 'request');
           }
      }
      

      The access to http://host/ezsetup and run the setup

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: