0

我的akeneo 安装工作得很好,没有任何错误。但是当我想启动应用程序时,会出现以下错误:

警告:需要(web/akeneo/pim-community-standard/var/cache/prod/doctrine/orm/Proxies/__CG__PimBundleCatalogBu​​ndleEntityLocale.php):无法打开流:web/akeneo/pim-community-中没有这样的文件或目录standard/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php 在第 209 行致命错误:require(): Failed opening required 'web/akeneo/pim-community-standard/var/cache/prod/doctrine /orm/Proxies/__CG__PimBundleCatalogBu​​ndleEntityLocale.php' (include_path='.:/usr/local/lib/php') 在 web/akeneo/pim-community-standard/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ AbstractProxyFactory.php 第 209 行致命错误:未捕获 Symfony\Component\Debug\Exception\FatalErrorException:编译错误:require(): Failed opening required 'web/akeneo/pim-community-standard/var/cache/prod/doctrine/orm/Proxies/__CG__PimBundleCatalogBu​​ndleEntityLocale.php' (include_path='.:/usr/local/lib/php') 在 web/akeneo/pim-community -standard/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209 堆栈跟踪:#0 {main} Next RuntimeException:无法启动会话,因为标头已由“web/akeneo/ pim-community-standard/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php”在第 209 行。在 web/akeneo/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component /HttpFoundation/Session/Storage/NativeSessionStorage.php:141 堆栈跟踪:#0 web/akeneo/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoun 在 web/akeneo/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/第 141 行的 Session/Storage/NativeSessionStorage.php

有人能帮我吗?

4

1 回答 1

0

你清理缓存了吗?

使用命令 bin/console cache:clear --env=prod(或 env=dev)

或更“硬”的方式 rm -rf var/cache/*

于 2020-02-28T08:45:59.890 回答