This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
After running php artisan october:update in PuTTY to update October form 2.0.16 to 2.0.25 I get the following error:
Fatal error: Uncaught Error: Class 'Symfony\Component\Finder\Iterator\FilenameFilterIterator' not found in /home/myuser/domains/mysite.nl/public_html/vendor/symfony/finder/Finder.php:776
Stack trace:
- /home/myuser/domains/mysite.nl/public_html/vendor/symfony/finder/Finder.php(628): Symfony\Component\Finder\Finder->searchInDirectory('/home/myuser...')
- internal function: Symfony\Component\Finder\Finder->getIterator()
- /home/myuser/domains/mysite.nl/public_html/vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php(110): iterator_to_array(Object(Symfony\Component\Finder\Finder))
- /home/myuser/domains/mysite.nl/public_html/vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php(146): Composer\Downloader\ArchiveDownloader->Composer\Downloader{closure}('/home/myuser...')
- /home/myuser/domains/mysite.nl/public_html/vendor/react/promise/src/FulfilledPromise.php(28): Composer\Downloader\ArchiveDownloader->Composer\Downloader{closure}(N in /home/myuser/domains/mysite.nl/public_html/vendor/symfony/finder/Finder.php on line 776
ERROR Update failed. Check output above
The website now shows the text Missing vendor files, try running "composer install" or use the Wizard installer.
What would be the recommended course of action?
Ok, I did not have composer installed in the working dir.
Running the following in the working dir solved this issue:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Hey Briddle! This should be the last time you see this error because indeed it now uses the local working copy of composer.
1-3 of 3