[GH-ISSUE #1406] Problems installing koel using composer #802

Closed
opened 2026-02-26 02:34:19 +03:00 by kerem · 1 comment
Owner

Originally created by @warpdesign on GitHub (Jan 16, 2022).
Original GitHub issue: https://github.com/koel/koel/issues/1406

Describe the bug
After downloading/extracting the latest release (5.1.12), I get the following error when typing composer install:

PHP Fatal error: Uncaught Error: Cannot call constructor in /var/www/koel.local/public_html/vendor/symfony/finder/Comparator/NumberComparator.php:76
Stack trace:
#0 /usr/share/php/Symfony/Component/Finder/Finder.php(125): Symfony\Component\Finder\Comparator\NumberComparator->__construct()
#1 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(449): Symfony\Component\Finder\Finder->depth()
#2 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(194): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->updateInstalledPaths()
#3 [internal function]: Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->onDependenciesChangedEvent()
#4 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(172): call_user_func()
#5 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(101): Composer\EventDispatcher\EventDispatcher->doDispatch()
#6 /usr/share/php/Composer/Installer.php(341): Composer\EventDispatcher\EventD in /var/www/koel.local/public_html/vendor/symfony/finder/Comparator/NumberComparator.php on line 76

Fatal error: Uncaught Error: Cannot call constructor in /var/www/koel.local/public_html/vendor/symfony/finder/Compar
ator/NumberComparator.php:76
Stack trace:
#0 /usr/share/php/Symfony/Component/Finder/Finder.php(125): Symfony\Component\Finder\Comparator\NumberComparator->__construct()
#1 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(449): Symfony\Component\Finder\Finder->depth()
#2 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(194): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->updateInstalledPaths()
#3 [internal function]: Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->onDependenciesChangedEvent()
#4 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(172): call_user_func()
#5 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(101): Composer\EventDispatcher\EventDispatcher->doDispatch()
#6 /usr/share/php/Composer/Installer.php(341): Composer\EventDispatcher\EventD in /var/www/koel.local/public_html/vendor/symfony/finder/Comparator/NumberComparator.php on line 76

To reproduce
Steps to reproduce the behavior:

  1. Download v5.1.12 from the releases page
  2. Extract the archive
  3. type composer install

Environment

  • Koel version [e.g. v5.1.12]
  • OS: Debian 10
  • Browser n/a
  • PHP version [7.4.25]
  • Node version [17.3.1]
Originally created by @warpdesign on GitHub (Jan 16, 2022). Original GitHub issue: https://github.com/koel/koel/issues/1406 **Describe the bug** After downloading/extracting the latest release (5.1.12), I get the following error when typing `composer install`: > PHP Fatal error: Uncaught Error: Cannot call constructor in /var/www/koel.local/public_html/vendor/symfony/finder/Comparator/NumberComparator.php:76 > Stack trace: > #0 /usr/share/php/Symfony/Component/Finder/Finder.php(125): Symfony\Component\Finder\Comparator\NumberComparator->__construct() > #1 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(449): Symfony\Component\Finder\Finder->depth() > #2 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(194): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->updateInstalledPaths() > #3 [internal function]: Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->onDependenciesChangedEvent() > #4 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(172): call_user_func() > #5 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(101): Composer\EventDispatcher\EventDispatcher->doDispatch() > #6 /usr/share/php/Composer/Installer.php(341): Composer\EventDispatcher\EventD in /var/www/koel.local/public_html/vendor/symfony/finder/Comparator/NumberComparator.php on line 76 > > Fatal error: Uncaught Error: Cannot call constructor in /var/www/koel.local/public_html/vendor/symfony/finder/Compar > ator/NumberComparator.php:76 > Stack trace: > #0 /usr/share/php/Symfony/Component/Finder/Finder.php(125): Symfony\Component\Finder\Comparator\NumberComparator->__construct() > #1 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(449): Symfony\Component\Finder\Finder->depth() > #2 /var/www/koel.local/public_html/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php(194): Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->updateInstalledPaths() > #3 [internal function]: Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin->onDependenciesChangedEvent() > #4 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(172): call_user_func() > #5 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(101): Composer\EventDispatcher\EventDispatcher->doDispatch() > #6 /usr/share/php/Composer/Installer.php(341): Composer\EventDispatcher\EventD in /var/www/koel.local/public_html/vendor/symfony/finder/Comparator/NumberComparator.php on line 76 **To reproduce** Steps to reproduce the behavior: 1. Download v5.1.12 from the releases page 2. Extract the archive 3. type `composer install` **Environment** - Koel version [e.g. v5.1.12] - OS: Debian 10 - Browser n/a - PHP version [7.4.25] - Node version [17.3.1]
kerem closed this issue 2026-02-26 02:34:19 +03:00
Author
Owner

@Sacha-Ringenbach commented on GitHub (Feb 26, 2022):

Try to downgrade node to v12.3.1 using this utility : https://www.npmjs.com/package/n

npm install -g n
sudo n 12.3.1

<!-- gh-comment-id:1052232247 --> @Sacha-Ringenbach commented on GitHub (Feb 26, 2022): Try to downgrade node to v12.3.1 using this utility : https://www.npmjs.com/package/n `npm install -g n` `sudo n 12.3.1`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#802
No description provided.