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

    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

        Issue Links

          Activity

          Hide
          Michal Pipa (Inactive) added a comment -

          You'll also have to set "minimum-stability": "dev" in order to be able to run

          composer require ezsystems/legacy-bridge

          It is much better to run: composer require ezsystems/legacy-bridge:dev-master. It will install dev version of legacy-bridge only, not all packages.

          Show
          Michal Pipa (Inactive) added a comment - You'll also have to set "minimum-stability": "dev" in order to be able to run composer require ezsystems/legacy-bridge It is much better to run: composer require ezsystems/legacy-bridge:dev-master . It will install dev version of legacy-bridge only, not all packages.
          Hide
          Rui Silva (Inactive) added a comment -

          Another change that perhaps should be made to the doc page is to refer that the the settings set on the app/config/security.yml file:

          ezpublish_setup:
              pattern: ^/ezsetup
              security: false
          

          should be added inside the *firewalls:" block.

          Show
          Rui Silva (Inactive) added a comment - Another change that perhaps should be made to the doc page is to refer that the the settings set on the app/config/security.yml file: ezpublish_setup: pattern: ^/ezsetup security: false should be added inside the *firewalls:" block.
          Hide
          Michal Pipa (Inactive) added a comment -

          Bertrand Dunogier what do you think about our comments? Should we update documentation?

          Show
          Michal Pipa (Inactive) added a comment - Bertrand Dunogier what do you think about our comments? Should we update documentation?
          Hide
          Bertrand Dunogier added a comment -

          You'll also have to set "minimum-stability": "dev" in order to be able to run

          Indeed... the package should have been tagged. We'll try to fix it asap.

          Show
          Bertrand Dunogier added a comment - You'll also have to set "minimum-stability": "dev" in order to be able to run Indeed... the package should have been tagged. We'll try to fix it asap.
          Hide
          Bertrand Dunogier added a comment - - edited

          I have changed app to ezpublish (I use an odd (e.g. standard) application layout).

          Show
          Bertrand Dunogier added a comment - - edited I have changed app to ezpublish (I use an odd (e.g. standard) application layout).
          Hide
          Paulo Nunes (Inactive) added a comment -

          Currently, the installation of legacy-bridge already seems to be working without the need of "minimum-stability": "dev"
          Due that, i'll close this issue.

          Show
          Paulo Nunes (Inactive) added a comment - Currently, the installation of legacy-bridge already seems to be working without the need of "minimum-stability": "dev" Due that, i'll close this issue.
          Hide
          Rui Silva (Inactive) added a comment -

          I'm re-opening this issue on behalf of the continued need to insert the initializeContainer() function on ezpublish/EzPublishKernel.php.
          This step is not yet on the documentation, and it's still required for the reported error to not occur.

          Show
          Rui Silva (Inactive) added a comment - I'm re-opening this issue on behalf of the continued need to insert the initializeContainer() function on ezpublish/EzPublishKernel.php. This step is not yet on the documentation, and it's still required for the reported error to not occur.
          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          The You cannot create a service ("request") of an inactive scope ("request") error still occurs, unless I do an installation of platform as:
          $ php -d memory_limit=-1 composer.phar create-project --prefer-source ezsystems/ezplatform ezpublish5 dev-master

          And the installation of legacy-bridge as:
          $ composer require ezsystems/legacy-bridge:dev-master

          Show
          Paulo Nunes (Inactive) added a comment - - edited The You cannot create a service ("request") of an inactive scope ("request") error still occurs, unless I do an installation of platform as: $ php -d memory_limit=-1 composer.phar create-project --prefer-source ezsystems/ezplatform ezpublish5 dev-master And the installation of legacy-bridge as: $ composer require ezsystems/legacy-bridge: dev-master

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: