【问题标题】:RuntimeException: An error occurred when executing the "cache:clear --no-warmup" command while update Symfony 2.4.1RuntimeException:在更新 Symfony 2.4.1 时执行“cache:clear --no-warmup”命令时发生错误
【发布时间】:2014-02-06 12:59:54
【问题描述】:

当我通过 composer 使用命令更新 Symfony 2.4.1 时:

php composer.phar update

我收到一个错误RuntimeException: An error occurred when executing the "cache:clear --no-warmup" command.

【问题讨论】:

  • 许多事情都可能导致该错误。发布你得到的完整错误
  • RuntimeException: An error occurred when executing the "cache:clear --no-warmup" command. 是一个完整的错误消息,我在composer.json 中使用"doctrine/orm": "~2.2.3", 解决了这个问题

标签: symfony doctrine-orm composer-php


【解决方案1】:

我通过在php.ini 中设置timezone 变量解决了这个问题,如下所示:

date.timezone = America/New_York

您可以在php官网找到支持的时区列表:

http://www.php.net/manual/en/timezones.php

我希望这会有所帮助。

【讨论】:

    【解决方案2】:

    有解决办法:需要在composer.json文件中替换:

    "doctrine/orm": "~2.2,>=2.2.3",
    

    有下一个要求:

    "doctrine/orm": "~2.2.3",
    

    然后再次运行更新:

    php composer.phar update
    

    这是因为 composer 尝试下载并安装新的Doctrine BETA 版本。

    【讨论】:

      【解决方案3】:

      更新包时尝试 sudo composer update。

      【讨论】:

        猜你喜欢
        • 2016-08-05
        • 1970-01-01
        • 2018-04-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-06-16
        • 2016-07-29
        相关资源
        最近更新 更多