• Resolved yasodhara

    (@yasodhara)


    We’re seeing this error when submitting a constant-contact-form form:

    Catchable fatal error: Argument 1 passed to GuzzleHttp\Exception\RequestException::create() must be an instance of GuzzleHttp\Message\RequestInterface, instance of GuzzleHttp\Psr7\Request given, called in …/wp-content/plugins/constant-contact-api/vendor/guzzlehttp/guzzle/src/Middleware.php on line 65 and defined in …/wp-content/plugins/constant-contact-forms/vendor/constantcontact/guzzlehttp/guzzle/src/Exception/RequestException.php on line 65

    constant-contact-forms version: 1.3.7
    constant-contact-api version: 4.1.1
    wordpress: 4.9.7

    Any ideas?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Hi @yasodhara

    From the looks of it, the “Constant Contact API” plugin is using a different version of Guzzle than our plugin is.

    Specifically, they’re in the 6.x branch while we’re still in the 5.x branch. With that, the way things are being loaded, one version is being loaded and used for both.

    The 6.x branch only has support for PHP 5.5+, while we still support PHP 5.4, so we need the Guzzle 5.x branch.

    One question I have at least, is if you’re for sure needing both, or are you perhaps in transition away from “Constant Contact API” and testing things out before officially switching?

    Thread Starter yasodhara

    (@yasodhara)

    Hi. Sorry, just getting back to this. (Didn’t get an email notification that you’d responded.)

    We’ve had both constant-contact-api and constant-contact-forms installed for a while. I’m not sure why we have both, I’m just starting to look at the site. It’s a wordpress multi-site, so I think maybe some of the subsites are using *-api and some are using *-forms.

    The guzzle conflict didn’t seem to be an issue until one of the forms stopped working, then we get an error from trying to generate the error message I guess…

    I’ll see if we can choose between constant-contact-api and constant-contact-forms.

    Thanks.

    Plugin Author Constant Contact

    (@constantcontact)

    One thing to keep in mind if it comes down to trying to keep both around, but only use one or the other in an individual site would be if either of them are network activated. That detail would cause one to be active in all of the sites, and not able to be controlled in each.

    Hopefully the WordPress PHP version usage fleshes out more where it’s advantageous to drop PHP 5.4 support without cutting off too many potential customers. The community isn’t there yet though.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘GuzzleHttp error’ is closed to new replies.