当前位置:   article > 正文

[symonfy] An error occurred when executing the "'cache:clear --no-warmup'"

error occurred when executing facedetailer: type object 'vaeencode' has no a

Symfony Version: 3.4.*

当运行 composer update 会出现

  1. [RuntimeException]
  2. An error occurred when executing the "'cache:clear --no-warmup'" command:
  3. PHP Fatal error: require_once(): Failed opening required '/srv/www/htdocs/sfs/vendor/doctrine/common/lib/Doctrine/Common/Persistence/ConnectionRegistr
  4. y.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /srv/www/htdocs/sfs/var/cache/dev/ContainerFoco7kp/appDevDebugProjectContainer.php on
  5. line 714
  6. In appDevDebugProjectContainer.php line 714:
  7. Compile Error: require_once(): Failed opening required '/srv/www/htdocs/sfs
  8. /vendor/doctrine/common/lib/Doctrine/Common/Persistence/ConnectionRegistry.
  9. php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR')

运行 composer update --no-scripts

而解决 doctrine/common/lib/Doctrine/Common/Persistence/ConnectionRegistry.php 文件不存在,

我是参考 doctrine common 2.9 has moved reflection

composer.json 中 添加

  1. "conflict": {
  2. "doctrine/common": ">2.8"
  3. }

然后运行 composer update --no-scripts

重新运行 composer require doctrine/common

  1. wakasann@linux-2ywt:/srv/www/htdocs/sfs> composer update --no-scripts
  2. Loading composer repositories with package information
  3. Updating dependencies (including require-dev)
  4. Package operations: 0 installs, 2 updates, 3 removals
  5. - Removing doctrine/reflection (v1.0.0)
  6. - Removing doctrine/persistence (v1.0.1)
  7. - Removing doctrine/event-manager (v1.0.0)
  8. - Updating doctrine/common (v2.9.0 => v2.8.0): Downloading (100%)
  9. - Updating doctrine/dbal (v2.8.0 => v2.7.2): Downloading (100%)
  10. Writing lock file
  11. Generating autoload files

看到 doctrine/common 降到 2.8.0了,直接运行 composer update 也不会报错了


参考

  1. doctrine common 2.9 has moved reflection
  2. An error occurred when executing the “'cache:clear --no-warmup'” command

转载于:https://www.cnblogs.com/fsong/p/9901588.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/370452
推荐阅读
相关标签
  

闽ICP备14008679号