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

Install legacy_bridge after upgrading from 5.4 to ezplatform raises an error



    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 1.11.0
    • Fix Version/s: QA tracked issues
    • Component/s: Legacy bridge
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.30-0+deb8u1
      Database and version: Mysql 5.5.54-0+deb8u1


      The upgrade from ezpublish5.4-> eZ Platform has as optional the installation of legacy bridge (see step 2.5). (I followed https://github.com/ezsystems/developer-documentation/pull/28))
      Being optional, we may bypass this step.
      But if a customer descide, later, to install legacy_bridge anyway, when he follows the legacy bridge documentation, he has an error after executing the composer require --update-no-dev "ezsystems/legacy-bridge:^1.3.0" step.

      Writing lock file
      Generating autoload files
      > Incenteev\ParameterHandler\ScriptHandler::buildParameters
      Updating the "app/config/parameters.yml" file
      > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
      > eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler::clearCache
      PHP Fatal error:  Class 'EzSystems\EzPlatformXmlTextFieldTypeBundle\EzSystemsEzPlatformXmlTextFieldTypeBundle' not found in /var/www/html/ezp60/ezplatform/app/AppKernel.php on line 55
      Script eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler::clearCache handling the build event terminated with an exception
      Installation failed, reverting ./composer.json to its original content.
        An error occurred when executing the "'cache:clear --no-warmup'" command:                                                                                       
        PHP Fatal error:  Class 'EzSystems\EzPlatformXmlTextFieldTypeBundle\EzSystemsEzPlatformXmlTextFieldTypeBundle' not found in /var/www/html/ezp60/ezplatform/app  
        /AppKernel.php on line 55                                                                                                                                       
      require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

      If the user install legacy_bridge in the optional step (2.5 referred above) sequence, then this error does not happen. Only if he tries to install it after the upgrade rpocess.

      Steps to Reproduce

      -Install a 5.4 version of ezpublish
      -Upgrade to ezplatform
      -Install legacy-bridge

      The error happens after the composer require --update-no-dev "ezsystems/legacy-bridge:^1.3.0" step


          Issue Links



              • Assignee:
                paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: