本文介绍了MailChimp PHP库缺少所需的GuzzleHttp库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过SSH在Godaddy共享主机上安装了Guzzle,但是我的Drupal网站仍然告诉我:

会说吗它似乎已经正确安装。

  godaddy @ user [〜/ public_html] $ php composer.phar require guzzlehttp / guzzle:〜 6.0 
./composer.json已创建
加载包信息的编辑器存储库
更新依赖关系(包括require-dev)
- 安装guzzlehttp / promises(1.2.0)
下载:100%

- 安装psr / http-message(1.0)
下载:100%

- 安装guzzlehttp / psr7(1.3.0 )
下载:100%

- 安装guzzlehttp / guzzle(6.2.0)
下载:100%

写入锁定文件
生成自动加载文件


解决方案

在图书馆页面上,如果你是使用包


I have installed Guzzle on my Godaddy shared hosting via SSH but my Drupal site is still telling me that:

Any ideas why it would be saying that? it appears to have installed correctly.

godaddy@user [~/public_html]$ php composer.phar require guzzlehttp/guzzle:~6.0
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing guzzlehttp/promises (1.2.0)
    Downloading: 100%

  - Installing psr/http-message (1.0)
    Downloading: 100%

  - Installing guzzlehttp/psr7 (1.3.0)
    Downloading: 100%

  - Installing guzzlehttp/guzzle (6.2.0)
    Downloading: 100%

Writing lock file
Generating autoload files
解决方案

On the library page, if you are using the package https://github.com/thinkshout/mailchimp-api-php/releases which contains everything e.g. v1.0.6-package.zip (and therefore having everything already doesn't require composer to get them), then remove /vendor from .gitignore so that all the files in /vendor - including guzzle are included in your code base so that should you deploy the code from your repo to a production server, all of it will be loaded.

CREDIT: https://www.drupal.org/node/2709615#comment-11888769

这篇关于MailChimp PHP库缺少所需的GuzzleHttp库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 04:50
查看更多