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

Installing legacy bridge on a master results in PHP error on EzPublishLegacyBundle::boot()

    Details

    • Type: Bug Bug
    • Status: Confirmed
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 2015.07
    • Fix Version/s: QA tracked issues
    • Component/s: Legacy bridge
    • Labels:
      None
    • Environment:

      PHP 5.4.16
      mysql Ver 15.1 Distrib 5.5.37-MariaDB

      Description

      Steps to reproduce:

      1. Install master:

      php -d memory_limit=-1 composer.phar create-project --no-dev --prefer-source ezsystems/ezplatform ezpublish5 'dev-master'
      

      2. Fill database:

      php ezpublish/console ezplatform:install --env prod demo-clean
      

      3. Set permissions and dump assets:

      sudo setfacl -R -m u:apache:rwx -m u:apache:rwx ezpublish/{cache,logs,config,sessions} web
      sudo setfacl -dR -m u:apache:rwx -m u:`whoami`:rwx ezpublish/{cache,logs,config} web
      php ezpublish/console assets:install --symlink web
      php ezpublish/console ezpublish:legacy:assets_install --symlink web
      php ezpublish/console assetic:dump --env=prod web
      

      4. Follow steps on:

      https://doc.ez.no/display/EZP/Installing+eZ+Publish+Legacy+on+top+of+eZ+Platform
      

      5. Add the initializeContainer function at the description of :

      https://jira.ez.no/browse/EZP-24109
      

      6. Clear caches;

      7. Fetch legacy-bridge:

      composer require --update-no-dev ezsystems/legacy-bridge
      

      At the end, after updating parameters.yml, I get:

      > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
      > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
      PHP Warning:  Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Warning: require_once(/var/www/html/ezpublish5/ezpublish/../ezpublish_legacy/autoload.php): failed to open stream: No such file or directory' in /var/www/html/ezpublish5/vendor/ezsystems/legacy-bridge/bundle/EzPublishLegacyBundle.php:43
      Stack trace:
      #0 /var/www/html/ezpublish5/vendor/ezsystems/legacy-bridge/bundle/EzPublishLegacyBundle.php(43): Symfony\Component\Debug\ErrorHandler->handleError(2, 'require_once(/v...', '/var/www/html/e...', 43, Array)
      #1 /var/www/html/ezpublish5/vendor/ezsystems/legacy-bridge/bundle/EzPublishLegacyBundle.php(43): eZ\Bundle\EzPublishLegacyBundle\EzPublishLegacyBundle::boot()
      #2 /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(142): eZ\Bundle\EzPublishLegacyBundle\EzPublishLegacyBundle->boot()
      #3 /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(70): Symfony\Component\HttpKernel\Kernel->boot in /var/www/html/ezpublish5/vendor/ezsystems/legacy-bridge/bundle/EzPublishLegacyBundle.php on line 43
      PHP Fatal error:  eZ\Bundle\EzPublishLegacyBundle\EzPublishLegacyBundle::boot(): Failed opening required '/var/www/html/ezpublish5/ezpublish/../ezpublish_legacy/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/ezpublish5/vendor/ezsystems/legacy-bridge/bundle/EzPublishLegacyBundle.php on line 43
      Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
       
        [RuntimeException]
        An error occurred when executing the "'cache:clear --no-warmup'" command.
      

        Issue Links

          Activity

          Hide
          Rui Silva (Inactive) added a comment -

          Seems this behaviour has been "replaced" by the error reported at EZP-24761, so, this error is not showing for now.

          Show
          Rui Silva (Inactive) added a comment - Seems this behaviour has been "replaced" by the error reported at EZP-24761 , so, this error is not showing for now.

            People

            • Assignee:
              Unassigned
              Reporter:
              Rui Silva (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: