View previous topic :: View next topic |
Author |
Message |
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Wed Oct 23, 2024 1:58 pm Post subject: Error when installing composer package JWT |
|
|
I am trying to get into Symfony and then i wanted to install JWT but then i keep getting this error message
Code: |
./composer.json has been updated
Running composer update lexik/jwt-authentication-bundle
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "7.1.*"
Updating dependencies
In Problem.php line 652:
[TypeError]
substr(): Argument #1 ($string) must be of type string, null given
Exception trace:
at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:652
substr() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:652
Composer\DependencyResolver\Problem::Composer\DependencyResolver\{closure}() at n/a:n/a
array_map() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:651
Composer\DependencyResolver\Problem::getProvidersList() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:281
Composer\DependencyResolver\Problem::getMissingPackageReason() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Rule.php:324
Composer\DependencyResolver\Rule->getPrettyString() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:168
Composer\DependencyResolver\Problem::formatDeduplicatedRules() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:111
Composer\DependencyResolver\Problem->getPrettyString() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/SolverProblemsException.php:52
Composer\DependencyResolver\SolverProblemsException->getPrettyString() at phar:///usr/share/composer/bin/composer/src/Composer/Installer.php:513
Composer\Installer->doUpdate() at phar:///usr/share/composer/bin/composer/src/Composer/Installer.php:298
Composer\Installer->run() at phar:///usr/share/composer/bin/composer/src/Composer/Command/RequireCommand.php:498
Composer\Command\RequireCommand->doUpdate() at phar:///usr/share/composer/bin/composer/src/Composer/Command/RequireCommand.php:340
Composer\Command\RequireCommand->execute() at phar:///usr/share/composer/bin/composer/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar:///usr/share/composer/bin/composer/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/share/composer/bin/composer/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at phar:///usr/share/composer/bin/composer/src/Composer/Console/Application.php:407
Composer\Console\Application->doRun() at phar:///usr/share/composer/bin/composer/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar:///usr/share/composer/bin/composer/src/Composer/Console/Application.php:147
Composer\Console\Application->run() at phar:///usr/share/composer/bin/composer/bin/composer:93
require() at /usr/share/composer/bin/composer:29
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
|
I already tried installing PHP 8.3 (which on Gentoo is in testing now) and updating composer. |
|
Back to top |
|
|
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Wed Oct 23, 2024 2:23 pm Post subject: |
|
|
I forgot to mention my friend who uses Linux mint worked me through the Symfony install process and it worked on his machine, he only has a slighly older PHP version but still 8.3 |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1770 Location: Germany
|
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1935
|
Posted: Wed Oct 23, 2024 4:06 pm Post subject: |
|
|
Taigo wrote: | I am trying to get into Symfony and then i wanted to install JWT but then i keep getting this error message
Code: |
In Problem.php line 652:
[TypeError]
substr(): Argument #1 ($string) must be of type string, null given
Exception trace:
at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:652
substr() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:652 |
|
The composer version used is not compatible with the installed PHP when there is a missing description. This was recently fixed upstream and is likely to be fixed in the next composer. |
|
Back to top |
|
|
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Thu Oct 24, 2024 10:27 pm Post subject: |
|
|
grknight wrote: | Taigo wrote: | I am trying to get into Symfony and then i wanted to install JWT but then i keep getting this error message
Code: |
In Problem.php line 652:
[TypeError]
substr(): Argument #1 ($string) must be of type string, null given
Exception trace:
at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:652
substr() at phar:///usr/share/composer/bin/composer/src/Composer/DependencyResolver/Problem.php:652 |
|
The composer version used is not compatible with the installed PHP when there is a missing description. This was recently fixed upstream and is likely to be fixed in the next composer. |
AH i see thanks. So i just need to wait or use composer upstream |
|
Back to top |
|
|
Taigo Tux's lil' helper
Joined: 09 Nov 2022 Posts: 105 Location: the Netherlands
|
Posted: Thu Oct 24, 2024 10:29 pm Post subject: |
|
|
Banana wrote: | Well, if it works on the other machine, compare the versions of "everything". Like php (you did that already), symphony and the JWT itself. |
Yes i checked that with "only" i did mean only PHP is another version of the relevant programs. |
|
Back to top |
|
|
|