【问题标题】:Error after clear the cache manually [symfony2]手动清除缓存后出错 [symfony2]
【发布时间】:2016-12-23 20:21:08
【问题描述】:

我无法通过命令行清除缓存,所以决定手动清除缓存,但是当我刷新页面时出现以下错误:

运行时异常在 C:\xampp\htdocs\Symfony\vendor\symfony\symfony\src\Symfony\Component\Debug\DebugClassLoader.php 第 258 行:自动加载器期望类“Http\Message\Formatter”为 在文件中定义 “C:\xampp\htdocs\Symfony\vendor\composer/../php-http/message/src\Formatter.php”。 找到文件但类不在其中,类名或 命名空间可能有错字。

我尝试运行这个命令 php app/console cache:warmup 但仍然有同样的错误。

【问题讨论】:

    标签: php symfony caching


    【解决方案1】:

    我只是通过在我的 composer.json 中删除这两个包来解决这个问题:

      "egeloen/google-map-bundle": "dev-master",
        "php-http/httplug-bundle": "1.3.0",
    

    然后我运行composer update

    我认为问题来自 php-http/httplug-bundle 但我不知道为什么...

    【讨论】:

      猜你喜欢
      • 2014-10-13
      • 1970-01-01
      • 2012-08-03
      • 1970-01-01
      • 2015-02-13
      • 1970-01-01
      • 2020-04-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多