Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TypeError when installing skeleton v2024.3 #202

Closed
kmpm opened this issue Oct 11, 2024 · 3 comments
Closed

[Bug]: TypeError when installing skeleton v2024.3 #202

kmpm opened this issue Oct 11, 2024 · 3 comments
Labels

Comments

@kmpm
Copy link

kmpm commented Oct 11, 2024

Expected behavior

Running composer create-project with pimcore/skeleton should provide me with a folder where an installation of pimcore exists.

Actual behavior

$ COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/skeleton my-skeleton
Creating a "pimcore/skeleton" project at "./my-skeleton"
Installing pimcore/skeleton (v2024.3.0)
  - Installing pimcore/skeleton (v2024.3.0): Extracting archive
Created project in /opt/pimcore/my-skeleton
Loading composer repositories with package information
Updating dependencies

In Problem.php line 652:

  [TypeError]
  substr(): Argument #1 ($string) must be of type string, null given


Exception trace:
  at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:652
 substr() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:652
 Composer\DependencyResolver\Problem::Composer\DependencyResolver\{closure}() at n/a:n/a
 array_map() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:651
 Composer\DependencyResolver\Problem::getProvidersList() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:281
 Composer\DependencyResolver\Problem::getMissingPackageReason() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Rule.php:324
 Composer\DependencyResolver\Rule->getPrettyString() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:168
 Composer\DependencyResolver\Problem::formatDeduplicatedRules() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Problem.php:111
 Composer\DependencyResolver\Problem->getPrettyString() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/SolverProblemsException.php:52
 Composer\DependencyResolver\SolverProblemsException->getPrettyString() at phar:///usr/local/bin/composer/src/Composer/Installer.php:513
 Composer\Installer->doUpdate() at phar:///usr/local/bin/composer/src/Composer/Installer.php:298
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:263
 Composer\Command\CreateProjectCommand->installProject() at phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:153
 Composer\Command\CreateProjectCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:407
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:147
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:93
 require() at /usr/local/bin/composer:29

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

Steps to reproduce

On a ubuntu 24.04.1 (where pimcore/demo works).

  • Run COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/skeleton my-skeleton
@kmpm kmpm added the Bug label Oct 11, 2024
@cngJo
Copy link

cngJo commented Oct 14, 2024

This is probably related to composer/composer#12156
I was able to fix this by downgrading to the latest 2.7.9 version of composer

@br33f
Copy link

br33f commented Oct 14, 2024

This issue seems to occur in Composer versions 2.8.0 and 2.8.1, while version 2.7.9 works correctly.

After updating composer to version 2.7.9:
composer self-update 2.7.9

And then running
composer install

The installation proceeds correctly on my end.

@kmpm
Copy link
Author

kmpm commented Oct 16, 2024

Works with 2.7.9. And it seems that a update to Composer will fix it later on so I close this issue

@kmpm kmpm closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants