Answer the question
In order to leave comments, you need to log in
How to fix error after Symfony update?
I'm trying to update Symfony 4 to version 5.2, composer updated all the packages and at the end gave the following:
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In AbstractDoctrineExtension.php line 227:
!!
!! Specified non-existing directory "C:\dev\php\web\site-en\en-site/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity" as Doctrine mapping source.
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
Answer the question
In order to leave comments, you need to log in
Actually, the correct answer to the question is to put the correct path in doctrine.yaml
config/packages/doctrine.yaml:
mappings:
tree:
is_bundle: false
type: annotation
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Tree/Entity"
prefix: Gedmo\Tree\Entity
alias: Gedmo
https://github.com/Sylius/Sylius-Standard/pull/274
Based on this pull request, I can assume that you did not create the necessary directory during the update.
Options:
1. Update package version https://github.com/doctrine-extensions/DoctrineExt...
2. Manually create directory /vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity/
All salt was in two domains on one IP. Specified aliases in vhosts, registered redirects with domain names in the correct order, and everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question