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

Installing legacy bridge on a master results in PHP error on redeclaration of eZUpdateDebugSettings()

    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

      Following the same reproduction steps as in EZP-24751 (a simple installation of a master and fetching legacy-bridge afterwards):
      I get the following error:

      Updating the "ezpublish/config/parameters.yml" file
      > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
      > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
      Clearing the cache for the dev environment with debug true
      PHP Fatal error:  Cannot redeclare eZUpdateDebugSettings() (previously declared in /var/www/html/ezpublish5/ezpublish_legacy/kernel/classes/ezscript.php:1225) in /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/global_functions.php on line 109
      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.
      

      The reproduction steps are:

      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
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated: