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

Errors occur on running composer for master installation

    XMLWordPrintable

    Details

      Description

      Running a composer install with:
      php -d memory_limit=-1 composer.phar install --dev --prefer-dist
      for a master installation, on the 'Generating autoload files' part, results me in:

      Generating autoload files
      Updating the "ezpublish/config/parameters.yml" file
      PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/ml/Inline.php on line 409
      PHP Stack trace:
      PHP   1. {main}() /var/www/ezpublish54/ezpublish/console:0
      PHP   2. Symfony\Component\Console\Application->run() /var/www/ezpublish54/ezpublish/console:27
      PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
      PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/plication.php:41
      PHP   5. Symfony\Component\HttpKernel\Kernel->boot() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:70
      PHP   6. Symfony\Component\HttpKernel\Kernel->initializeContainer() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:129
      PHP   7. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php60
      PHP   8. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ntainerBuilder.php:617
      PHP   9. Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Compont/DependencyInjection/Compiler/Compiler.php:118
      PHP  10. Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Compone/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php:39
      PHP  11. eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension->load() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/DependcyInjection/Compiler/MergeExtensionConfigurationPass.php:50
      PHP  12. eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension->handleApiLoading() /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Bule/EzPublishCoreBundle/DependencyInjection/EzPublishCoreExtension.php:90
      PHP  13. Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load() /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/pendencyInjection/EzPublishCoreExtension.php:279
      PHP  14. Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadFile() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/DependencyInjecon/Loader/YamlFileLoader.php:44
      PHP  15. Symfony\Component\Yaml\Parser->parse() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php:26
      PHP  16. Symfony\Component\Yaml\Parser->parse() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php:186
      PHP  17. Symfony\Component\Yaml\Parser->parse() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php:186
      PHP  18. Symfony\Component\Yaml\Parser->parse() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php:186
      PHP  19. Symfony\Component\Yaml\Parser->parseValue() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php:114
      PHP  20. Symfony\Component\Yaml\Inline::parse() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Parser.php:407
      PHP  21. Symfony\Component\Yaml\Inline::parseMapping() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Inline.php:64
      PHP  22. Symfony\Component\Yaml\Inline::parseScalar() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Inline.php:371
      PHP  23. Symfony\Component\Yaml\Inline::evaluateScalar() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Inline.php:226
      PHP  24. array_key_exists() /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/Yaml/Inline.php:409
      

      and right after, it gets followed by:

       [Symfony\Component\Yaml\Exception\ParseException]
        Reference "" does not exist at line 56 (near "- { name: ezpublish.api.slot, signal: * }").
      
      
      
      Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
      
      
      
        [RuntimeException]
        An error occurred when executing the "'cache:clear --no-warmup'" command.
      

      This was detected when running Travis tests for a PR, and reproduced manually on a regular master installation on Debian machine, where the very same happened.

      Steps to reproduce:
      • git clone git@github.com:ezsystems/ezpublish-community.git <your_destination_folder>
      • cd <your_destination_folder>
      • curl -sS https://getcomposer.org/installer | php
      • php -d memory_limit=-1 composer.phar install --dev --prefer-dist

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: