При установке или обновлении пакетов composer возникают ошибки.
Ошибка имеет вид:
Restricting packages listed in «symfony/symfony» to «5.0.*»
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in «symfony/symfony» to «5.0.*»Prefetching 2 packages 🎵 💨
— Downloading (100%)Package operations: 0 installs, 3 updates, 0 removals
— Updating symfony/form (v5.0.5 => v5.0.8): Loading from cache
— Updating symfony/security-bundle (v5.0.5 => v5.0.8): Loading from cache
— Updating symfony/validator (v5.0.5 => v5.0.8): Loading from cache
Package easycorp/easy-log-handler is abandoned, you should avoid using it. No replacement was suggested.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class…
ocramius/package-versions: …done generating version class
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#23
!! #message: «»»
!! Attempted to load class «DoctrineFixturesBundle» from namespace «Doctrine\Bundle\FixturesBundle».\n
!! Did you forget a «use» statement for another namespace?
!! «»»
!! #code: 0
!! #file: «./src/Kernel.php»
!! #line: 23
!! trace: {
!! ./src/Kernel.php:23 {
!! App\Kernel->registerBundles(): iterable
!! › if ($envs[$this->environment] ?? $envs[‘all’] ?? false) {
!! › yield new $class();
!! › }
!! }
!! ./vendor/symfony/http-kernel/Kernel.php:369 { …}
!! ./vendor/symfony/http-kernel/Kernel.php:123 { …}
!! ./vendor/symfony/framework-bundle/Console/Application.php:169 { …}
!! ./vendor/symfony/framework-bundle/Console/Application.php:75 { …}
!! ./vendor/symfony/console/Application.php:140 { …}
!! ./bin/console:42 { …}
!! }
!! }
!! 2[critical] Uncaught Error: Class ‘Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle’ not found
!!
Script @auto-scripts was called via post-update-cmdInstallation failed, reverting ./composer.json to its original content.
Проблема может быть в конфигурационных путях сайта и в кэшах. Во-втором случае можно попробовать сбросить кэши:
Если это не помогло, то удалить node_modules, переименовать проект. Заново установить пакеты из composer: