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

Execute composer update prior to Setup Wizard results in errors due to ezsystems/ezpublish-legacy-installer plugin

    Details

      Description

      If you install eZ Publish using the E.E. tarbal and executing composer update prior to the Setup Wizard, you will get errors and/or warnings due to "ezsystems/ezpublish-legacy-installer" plugin.

      Please notice these steps were performed according to the 5.4.x Update Instructions and Using Composer documentation pages. If it's not possible to use the latest version of composer, there should be a warning in the documentation or a way to change the "ezsystems/ezpublish-legacy-installer" plugin in order to work with the latest version.

      Steps to reproduce

      1. Download composer according to the Using Composer documentation page.

        php -r "readfile('https://getcomposer.org/installer');" | php

      2. Extract the ezpublish 5.4 tarball from eZ Publish Enterprise downloads.
      3. Follow the steps described in the 5.4.x Update Instructions documentation page.

        php -d memory_limit=-1 composer.phar remove behat/mink-selenium-driver --no-update --dev
        php -d memory_limit=-1 composer.phar require --no-update symfony/symfony:~2.7.0 sensio/distribution-bundle:~3.0
        php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist

      4. At this point, you will get the following error

        The "ezsystems/ezpublish-legacy-installer" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.

      5. As a workaround described in EZP-25774, open the Composer Manual Download page and download the 1.0.0 version.
      6. Execute the update step again

        php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist

      7. At this point, you will get the following warning

        The "ezsystems/ezpublish-legacy-installer" plugin requires composer-plugin-api 1.0.0, this WILL break in the future and it should be fixed ASAP (require ^1.0 for example).

        Issue Links

          Activity

          Hide
          Paulo Nunes (Inactive) added a comment -

          Note: Difference between current issue and EZP-25774:

          • In current we do update and then setup wizard
          • In EZP-25774, we did setup wizard and then update
          Show
          Paulo Nunes (Inactive) added a comment - Note: Difference between current issue and EZP-25774 : In current we do update and then setup wizard In EZP-25774 , we did setup wizard and then update
          Hide
          André Rømcke added a comment - - edited

          Updated:
          https://doc.ez.no/display/EZP/5.3.x+Update+Instructions
          https://doc.ez.no/display/EZP/5.4.x+Update+Instructions

          Following warning is expected and outside the scope of doc updates to fix:
          Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.

          Show
          André Rømcke added a comment - - edited Updated: https://doc.ez.no/display/EZP/5.3.x+Update+Instructions https://doc.ez.no/display/EZP/5.4.x+Update+Instructions — Following warning is expected and outside the scope of doc updates to fix: Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
          Hide
          Paulo Nunes (Inactive) added a comment -

          validating latest update on 5.4 instructions...

          Show
          Paulo Nunes (Inactive) added a comment - validating latest update on 5.4 instructions...
          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          André Rømcke
          On 5.4, using latest updated document
          The deprecation warnings disappeared and the guzzle one continued, as expected.
          Nevertheless, in the last command, an error occurred:
          php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist

          Loading composer repositories with package information
          Updating dependencies
          Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
          Generating autoload files
          > Incenteev\ParameterHandler\ScriptHandler::buildParameters
          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:  Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109
          PHP Stack trace:
          PHP   1. {main}() /var/www/ezp54/ezpublish5/ezpublish/console:0
          PHP   2. Symfony\Component\Console\Application->run() /var/www/ezp54/ezpublish5/ezpublish/console:27
          PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:120
          PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
          PHP   5. Symfony\Component\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:90
          PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:189
          PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:849
          PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:256
          PHP   9. Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:72
          PHP  10. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheClearer/ChainCacheClearer.php:42
          PHP  11. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->getLegacyKernel() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:64
          PHP  12. eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:54
           
                                                                                                                     
            [Symfony\Component\Debug\Exception\UndefinedMethodException]                                             
            Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel".  
                                                                                                                     
           
          cache:clear [--no-warmup] [--no-optional-warmers]
           
          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:                                                                    
            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/ezp54/ezpublish5/vendor/ezsystems/e  
            zpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109                                                                     
            PHP Stack trace:                                                                                                                             
            PHP   1. {main}() /var/www/ezp54/ezpublish5/ezpublish/console:0                                                                              
            PHP   2. Symfony\Component\Console\Application->run() /var/www/ezp54/ezpublish5/ezpublish/console:27                                         
            PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/  
            Console/Application.php:120                                                                                                                  
            PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/  
            EzPublishCoreBundle/Console/Application.php:41                                                                                               
            PHP   5. Symfony\Component\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle  
            /Console/Application.php:90                                                                                                                  
            PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Conso  
            le/Application.php:189                                                                                                                       
            PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Ap  
            plication.php:849                                                                                                                            
            PHP   8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/C  
            omponent/Console/Command/Command.php:256                                                                                                     
            PHP   9. Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/  
            Bundle/FrameworkBundle/Command/CacheClearCommand.php:72                                                                                      
            PHP  10. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Comp  
            onent/HttpKernel/CacheClearer/ChainCacheClearer.php:42                                                                                       
            PHP  11. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->getLegacyKernel() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-ke  
            rnel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:64                                                                          
            PHP  12. eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() /var/www/ezp54/ezpublish5/vendor/ezsystems  
            /ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:54                                                             
                                                                                                                                                         
              [Symfony\Component\Debug\Exception\UndefinedMethodException]                                                                               
              Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel".                                    
                                                                                                                                                         
            cache:clear [--no-warmup] [--no-optional-warmers]                                                                                            
            .                                                                                                                                            
                                                                                                                                                         
           
          update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
          

          Regarding 5.3, following the updated document I also have had errors in the last command
          php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist

          Loading composer repositories with package information
          Updating dependencies
          Generating autoload files
          > Incenteev\ParameterHandler\ScriptHandler::buildParameters
          Updating the "ezpublish/config/parameters.yml" file
          Deprecation Notice: The callback Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap declared at /var/www/html/ezp53/ezpublish5/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php accepts a Composer\Script\CommandEvent but post-update-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///var/www/html/ezp53/ezpublish5/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:289
          > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
          Deprecation Notice: The callback Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache declared at /var/www/html/ezp53/ezpublish5/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php accepts a Composer\Script\CommandEvent but post-update-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///var/www/html/ezp53/ezpublish5/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:289
          > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
          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/ezp53/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.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.  
                                                                                       
           
          update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
          

          Show
          Paulo Nunes (Inactive) added a comment - - edited André Rømcke On 5.4 , using latest updated document The deprecation warnings disappeared and the guzzle one continued, as expected. Nevertheless, in the last command, an error occurred: php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist Loading composer repositories with package information Updating dependencies Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead. Generating autoload files > Incenteev\ParameterHandler\ScriptHandler::buildParameters 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: Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109 PHP Stack trace: PHP 1. {main}() /var/www/ezp54/ezpublish5/ezpublish/console:0 PHP 2. Symfony\Component\Console\Application->run() /var/www/ezp54/ezpublish5/ezpublish/console:27 PHP 3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:120 PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41 PHP 5. Symfony\Component\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:90 PHP 6. Symfony\Component\Console\Application->doRunCommand() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:189 PHP 7. Symfony\Component\Console\Command\Command->run() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:849 PHP 8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:256 PHP 9. Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:72 PHP 10. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheClearer/ChainCacheClearer.php:42 PHP 11. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->getLegacyKernel() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:64 PHP 12. eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:54   [Symfony\Component\Debug\Exception\UndefinedMethodException] Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel".   cache:clear [--no-warmup] [--no-optional-warmers]   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: 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/ezp54/ezpublish5/vendor/ezsystems/e zpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109 PHP Stack trace: PHP 1. {main}() /var/www/ezp54/ezpublish5/ezpublish/console:0 PHP 2. Symfony\Component\Console\Application->run() /var/www/ezp54/ezpublish5/ezpublish/console:27 PHP 3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/ Console/Application.php:120 PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/ EzPublishCoreBundle/Console/Application.php:41 PHP 5. Symfony\Component\Console\Application->doRun() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle /Console/Application.php:90 PHP 6. Symfony\Component\Console\Application->doRunCommand() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Conso le/Application.php:189 PHP 7. Symfony\Component\Console\Command\Command->run() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Ap plication.php:849 PHP 8. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/C omponent/Console/Command/Command.php:256 PHP 9. Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/ Bundle/FrameworkBundle/Command/CacheClearCommand.php:72 PHP 10. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->clear() /var/www/ezp54/ezpublish5/vendor/symfony/symfony/src/Symfony/Comp onent/HttpKernel/CacheClearer/ChainCacheClearer.php:42 PHP 11. eZ\Bundle\EzPublishLegacyBundle\Cache\LegacyCachePurger->getLegacyKernel() /var/www/ezp54/ezpublish5/vendor/ezsystems/ezpublish-ke rnel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:64 PHP 12. eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() /var/www/ezp54/ezpublish5/vendor/ezsystems /ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/LegacyCachePurger.php:54 [Symfony\Component\Debug\Exception\UndefinedMethodException] Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel". cache:clear [--no-warmup] [--no-optional-warmers] .   update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]... Regarding 5.3 , following the updated document I also have had errors in the last command php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist Loading composer repositories with package information Updating dependencies Generating autoload files > Incenteev\ParameterHandler\ScriptHandler::buildParameters Updating the "ezpublish/config/parameters.yml" file Deprecation Notice: The callback Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap declared at /var/www/html/ezp53/ezpublish5/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php accepts a Composer\Script\CommandEvent but post-update-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///var/www/html/ezp53/ezpublish5/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:289 > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap Deprecation Notice: The callback Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache declared at /var/www/html/ezp53/ezpublish5/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php accepts a Composer\Script\CommandEvent but post-update-cmd events use a Composer\Script\Event instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///var/www/html/ezp53/ezpublish5/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:289 > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache 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/ezp53/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.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.   update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
          Hide
          André Rømcke added a comment -

          Added instructions for deleting Symfony Container cache to avoid issues on class changes:
          https://doc.ez.no/display/EZP/5.3.x+Update+Instructions
          https://doc.ez.no/display/EZP/5.4.x+Update+Instructions

          Show
          André Rømcke added a comment - Added instructions for deleting Symfony Container cache to avoid issues on class changes: https://doc.ez.no/display/EZP/5.3.x+Update+Instructions https://doc.ez.no/display/EZP/5.4.x+Update+Instructions
          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          André Rømcke
          Still no go on eZ Publish 5.4. Even after clearing ProjectContainer.php from cache have the error.

          (COS-7)vagrant:{/var/www/html/ezp54/ezpublish5}-> rm ezpublish/cache/*/*ProjectContainer.php
          (COS-7)vagrant:{/var/www/html/ezp54/ezpublish5}-> php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist 
          Loading composer repositories with package information
          Updating dependencies
          Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
          Generating autoload files
          > Incenteev\ParameterHandler\ScriptHandler::buildParameters
          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:  Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/html/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109
           
                                                                                                                     
            [Symfony\Component\Debug\Exception\UndefinedMethodException]                                             
            Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel".  
                                                                                                                     
           
          cache:clear [--no-warmup] [--no-optional-warmers]
           
          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:                                                                    
            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/ezp54/ezpublish5/vendor/ezsyst  
            ems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109                                                                
                                                                                                                                                         
              [Symfony\Component\Debug\Exception\UndefinedMethodException]                                                                               
              Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel".                                    
                                                                                                                                                         
            cache:clear [--no-warmup] [--no-optional-warmers]                                                                                            
            .                                                                                                                                            
          update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
          

          I will try now teh changes for 5.3
          As for 5.3

          Loading composer repositories with package information
          Updating dependencies
          Generating autoload files
          > Incenteev\ParameterHandler\ScriptHandler::buildParameters
          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:  Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/html/ezp53/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.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:                                                                    
            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/ezp53/ezpublish5/vendor/ezsyst  
            ems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109                                                                
            .                                                                                                                                            
                                                                                                                                                         
           
          update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
          

          Show
          Paulo Nunes (Inactive) added a comment - - edited André Rømcke Still no go on eZ Publish 5.4. Even after clearing ProjectContainer.php from cache have the error. (COS-7)vagrant:{/var/www/html/ezp54/ezpublish5}-> rm ezpublish/cache/*/*ProjectContainer.php (COS-7)vagrant:{/var/www/html/ezp54/ezpublish5}-> php -d memory_limit=-1 composer.phar update --no-dev --prefer-dist Loading composer repositories with package information Updating dependencies Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead. Generating autoload files > Incenteev\ParameterHandler\ScriptHandler::buildParameters 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: Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/html/ezp54/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109   [Symfony\Component\Debug\Exception\UndefinedMethodException] Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel".   cache:clear [--no-warmup] [--no-optional-warmers]   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: 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/ezp54/ezpublish5/vendor/ezsyst ems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109 [Symfony\Component\Debug\Exception\UndefinedMethodException] Attempted to call an undefined method named "hasInstance" of class "eZ\Publish\Core\MVC\Legacy\Kernel". cache:clear [--no-warmup] [--no-optional-warmers] . update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]... I will try now teh changes for 5.3 As for 5.3 Loading composer repositories with package information Updating dependencies Generating autoload files > Incenteev\ParameterHandler\ScriptHandler::buildParameters 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: Call to undefined method eZ\Publish\Core\MVC\Legacy\Kernel::hasInstance() in /var/www/html/ezp53/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.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: 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/ezp53/ezpublish5/vendor/ezsyst ems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php on line 109 .   update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
          Hide
          André Rømcke added a comment -

          Sounds like you are not getting updates to legacy kernel but only to new stack kernel. Ref https://jira.ez.no/browse/EZP-24135
          Could you check which packages are being installed now for you? (ezpublish-kernel and ezpublish-legacy)

          Show
          André Rømcke added a comment - Sounds like you are not getting updates to legacy kernel but only to new stack kernel. Ref https://jira.ez.no/browse/EZP-24135 Could you check which packages are being installed now for you? ( ezpublish-kernel and ezpublish-legacy )
          Hide
          Paulo Nunes (Inactive) added a comment -

          André Rømcke
          in 5.4, the updated to rc were:

          ezsystems/ezpublish-kernel                   v5.4.7-rc1 eZ Publish API and kernel. This is the heart of eZ Publish 5.
          ezsystems/ezpublish-legacy                   v5.4.7-rc1 eZ Publish LegacyStack (4.x)
          ezsystems/comments-bundle                    v5.4.7-rc1 Commenting system for eZ Publish
          ezsystems/ezflow-ls-extension                v5.3.9-rc1 eZ Publish Legacy Flow extension
          

          and in 5.3

          ezsystems/ezflow-ls-extension                v5.3.9-rc1 eZ Publish Legacy Flow extension
          ezsystems/ezpublish-kernel                   v5.3.9-rc2 eZ Publish API and kernel. This is the heart of eZ Publish 5.
          ezsystems/ezpublish-legacy                   v5.3.9-rc1 eZ Publish LegacyStack (4.x)
          

          Show
          Paulo Nunes (Inactive) added a comment - André Rømcke in 5.4, the updated to rc were: ezsystems/ezpublish-kernel v5.4.7-rc1 eZ Publish API and kernel. This is the heart of eZ Publish 5. ezsystems/ezpublish-legacy v5.4.7-rc1 eZ Publish LegacyStack (4.x) ezsystems/comments-bundle v5.4.7-rc1 Commenting system for eZ Publish ezsystems/ezflow-ls-extension v5.3.9-rc1 eZ Publish Legacy Flow extension and in 5.3 ezsystems/ezflow-ls-extension v5.3.9-rc1 eZ Publish Legacy Flow extension ezsystems/ezpublish-kernel v5.3.9-rc2 eZ Publish API and kernel. This is the heart of eZ Publish 5. ezsystems/ezpublish-legacy v5.3.9-rc1 eZ Publish LegacyStack (4.x)
          Hide
          Paulo Nunes (Inactive) added a comment -

          Finally and it's with pleasure that I say:
          QA Approved.

          Show
          Paulo Nunes (Inactive) added a comment - Finally and it's with pleasure that I say: QA Approved.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: