MailChimp PHP库缺少所需的GuzzleHttp库 [英] The MailChimp PHP library is missing the required GuzzleHttp library

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

问题描述

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


MailChimp PHP图书馆缺少所需的GuzzleHttp库
请检查README.txt中的安装说明。


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

  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%

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


解决方案

在图书馆页面上,如果你是使用包 https://github.com/thinkshout/mailchimp-api-php/releases其中包含所有内容v1.0.6-package.zip(因此所有的东西都已经不需要作曲者去获取它们),然后从.gitignore中删除/供应商,以便/ vendor中包含guzzle的所有文件都包含在你的代码库中,这样应该您将代码从代理部署到生产服务器,所有这些都将被加载。



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


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

"The MailChimp PHP library is missing the required GuzzleHttp library. Please check the installation notes in README.txt."

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库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆