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

Updating from a 5.3.0 results in Error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: High High
    • QA tracked issues
    • 5.3.5
    • Composer
    • None
    • CentOS6.5
      php 5.3.3
      mysql Ver 14.14 Distrib 5.1.73
      and:
      Debian 7
      php 5.4.39
      mysql Ver 14.14 Distrib 5.5.41

    Description

      On a 5.3.0, when running the composer update command:

      php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist ezsystems/ezpublish-kernel ezsystems/ezpublish-legacy ezsystems/ngsymfonytools-bundle
      

      referred at:
      https://doc.ez.no/display/EZP/5.3.1+Release+Notes
      in order to update to a 5.3.1, get the following error at the end of its execution after updating the parameters.yml file:

      Loading composer repositories with package information
      Updating dependencies
        - Removing ezsystems/ezpublish-kernel (v5.3.0)
        - Installing ezsystems/ezpublish-kernel (v5.3.5)
          Downloading: 100%
      
        - Installing ezsystems/ezpublish-legacy (v5.3.2)
          Downloading: 100%
      
        - Removing ezsystems/ngsymfonytools-bundle (v1.0.4)
        - Installing ezsystems/ngsymfonytools-bundle (v1.0.5)
          Downloading: 100%
      
      Writing lock file
      Generating autoload files
      Updating the "ezpublish/config/parameters.yml" file
      Clearing the cache for the dev environment with debug true
      PHP Fatal error:  Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/html/ezpublish53/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 106
      PHP Stack trace:
      PHP   1. {main}() /var/www/html/ezpublish53/ezpublish/console:0
      PHP   2. Symfony\Component\Console\Application->run() /var/www/html/ezpublish53/ezpublish/console:27
      PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
      PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/html/ezpublish53/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
      PHP   5. Symfony\Component\Console\Application->doRun() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
      PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
      PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:908
      PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
      PHP   9. Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer->clear() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:70
      PHP  10. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->clear() /var/www/html/ezpublish53/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheClearer/ChainCacheClearer.php:42
      PHP  11. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->getLegacyKernel() /var/www/html/ezpublish53/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:66
      PHP  12. eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() /var/www/html/ezpublish53/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:56
      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.
      

      This started happening right after the official release of the 5.3.5.

      Workaround
      Apparently, I can get a fully functional 5.3.5 installation anyway, by simply updating the composer.json file with all changes required in between all update processes from 5.3.0 to 5.3.5, then running the commands:

      php -d memory_limit=-1 composer.phar remove behat/mink-selenium-driver --no-update --dev
      php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist ezsystems/ezpublish-kernel ezsystems/demobundle ezsystems/ezpublish-legacy symfony/symfony
      

      from:
      https://doc.ez.no/display/EZP/5.3.5+Release+Notes
      then updating the database to the 5.3.3 state:

      <ezp5-root>/ezpublish_legacy/update/database/<mysql|postgresql>/5.3/dbupdate-5.3.2-to-5.3.3.sql
      

      and finally, running the command:

      php ezpublish/console ezpublish:legacy:script bin/php/ezpgenerateautoloads.php --extension
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rui.silva-obsolete@ez.no Rui Silva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: