【问题标题】:drush failing with autoload.php failed to open streamdrush 因 autoload.php 失败而无法打开流
【发布时间】:2015-08-29 03:40:38
【问题描述】:

我搜索了整个drupal 目录,但没有找到autoload.php 文件。我在命令行上使用 drush 启用模块时看到错误。

这是确切的错误

include(sites/all/modules/contrib/guzzle/vendor/autoload.php): failed to open stream: No such file or directory composer_autoload.module:24                           [warning]
include(): Failed opening 'sites/all/modules/contrib/guzzle/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')                      [warning]
composer_autoload.module:24

【问题讨论】:

    标签: php drupal composer-php


    【解决方案1】:

    我以前没有见过这个错误,但我认为它告诉你必须安装 composer,这现在是 Drush 的要求。请参阅 Drush 的安装说明:http://docs.drush.org/en/master/install/#composer-one-drush-for-all-projects

    【讨论】:

      【解决方案2】:

      我通过安装 composer 二进制文件,重新运行 drush dl composer 和 drush dl guzzle 来修复它,然后进入 guzzle 并运行 ./composer.phar install

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-04-19
        • 1970-01-01
        • 2019-05-30
        • 2019-02-01
        • 2022-01-03
        • 2015-12-11
        相关资源
        最近更新 更多