# Error during installation in Problem.php line 652

**URL:** <https://forum.shopware.com/t/error-during-installation-in-problem-php-line-652/105581>\
**Category:** Installation / Getting Started (EN)\
**Created:** [21. Oktober 2024 um 08:40 UTC](https://forum.shopware.com/t/error-during-installation-in-problem-php-line-652/105581 "2024-10-21T08:40:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopware.forum](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@shopware.forum](https://forum.shopware.com/u/shopware.forum)\
**Post date:** [21. Oktober 2024 um 08:40 UTC](https://forum.shopware.com/t/error-during-installation-in-problem-php-line-652/105581/1 "2024-10-21T08:40:12Z")

</div>

Hello,

I am trying to install the latest version of Shopware on a new VPS, Almalinux 9.3, PHP 8.2.13 en MariaDB 10.11.6, SELINUX is disabled. The installation stops in the „Download“ screen with this error:

No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See [Basic usage - Composer](https://getcomposer.org/install) for more information.  
Loading composer repositories with package information  
Updating dependencies  
Dependency resolution completed in 0.000 seconds

In Problem.php line 652:

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

Exception trace:  
at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php:652  
substr() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php:652  
Composer\DependencyResolver\Problem::Composer\DependencyResolver{closure}() at n/a:n/a  
array\_map() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php:651  
Composer\DependencyResolver\Problem::getProvidersList() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php:281  
Composer\DependencyResolver\Problem::getMissingPackageReason() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Rule.php:324  
Composer\DependencyResolver\Rule-\>getPrettyString() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php:168  
Composer\DependencyResolver\Problem::formatDeduplicatedRules() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/Problem.php:111  
Composer\DependencyResolver\Problem-\>getPrettyString() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/DependencyResolver/SolverProblemsException.php:52  
Composer\DependencyResolver\SolverProblemsException-\>getPrettyString() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/Installer.php:513  
Composer\Installer-\>doUpdate() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/Installer.php:298  
Composer\Installer-\>run() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/Command/InstallCommand.php:147  
Composer\Command\InstallCommand-\>execute() at phar:///var/www/html/shopware-installer-phar.php/vendor/symfony/console/Command/Command.php:326  
Symfony\Component\Console\Command\Command-\>run() at phar:///var/www/html/shopware-installer-phar.php/vendor/symfony/console/Application.php:1078  
Symfony\Component\Console\Application-\>doRunCommand() at phar:///var/www/html/shopware-installer-phar.php/vendor/symfony/console/Application.php:324  
Symfony\Component\Console\Application-\>doRun() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/Console/Application.php:407  
Composer\Console\Application-\>doRun() at phar:///var/www/html/shopware-installer-phar.php/vendor/symfony/console/Application.php:175  
Symfony\Component\Console\Application-\>run() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/src/Composer/Console/Application.php:147  
Composer\Console\Application-\>run() at phar:///var/www/html/shopware-installer-phar.php/vendor/composer/composer/bin/composer:94  
include() at phar:///var/www/html/shopware-installer-phar.php/vendor/bin/composer:119  
require() at /var/www/html/shopware-installer-phar.php:37

install [–prefer-source] [–prefer-dist] [–prefer-install PREFER-INSTALL] [–dry-run] [–download-only] [–dev] [–no-suggest] [–no-dev] [–no-autoloader] [–no-progress] [–no-install] [–audit] [–audit-format AUDIT-FORMAT] [-v|vv|vvv|–verbose] [-o|–optimize-autoloader] [-a|–classmap-authoritative] [–apcu-autoloader] [–apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [–ignore-platform-req IGNORE-PLATFORM-REQ] [–ignore-platform-reqs] [–] […]

What can possibly be wrong?

Thanks for your time,  
Roland

---

<div class="post-metadata">

**Author:** ![shopware.forum](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@shopware.forum](https://forum.shopware.com/u/shopware.forum)\
**Post date:** [22. Oktober 2024 um 10:20 UTC](https://forum.shopware.com/t/error-during-installation-in-problem-php-line-652/105581/2 "2024-10-22T10:20:22Z")

</div>

A consultant of Take The Lead in Belgium has found the root cause of this issue: the PHP extension SODIUM was not installed. This broke composer.

The ext-sodium is not listed in the system requirements (at this moment) so I couldn’t know about it.

Thanks for your help Dante!
