A
A
Araik2021-03-02 06:39:32
symfony
Araik, 2021-03-02 06:39:32

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


I can not understand what the problem is and how to fix it, tell me please.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Araik, 2021-06-26
@NinjaNickName

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

A
Artem Soshnikov, 2021-03-02
@artem90

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/

O
Outsider V., 2017-11-28
@Audiophile

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.

E
Evgeny Vorobyov, 2017-11-28
@lokki00003

RewriteRule ^/(.*)$ ./index.php/$1 [L,QSA]
So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question