Title: PHP-HTTP Errors with Mailgun
Last modified: December 13, 2022

---

# PHP-HTTP Errors with Mailgun

 *  Resolved [stevoli](https://wordpress.org/support/users/stevoli/)
 * (@stevoli)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/)
 * My error log is filled with this error, seems like it started on December 8th.
   It looks like it is a compatibility issue with the Amelia plugin.
 * I get no errors if I set the type to default or SMTP, it only happens when using
   Mailgun.
 * `[8-Dec-2022 18:30:31 UTC] PHP Fatal error: Declaration of Http\Client\Curl\Client::
   sendRequest(Psr\Http\Message\RequestInterface $request) must be compatible with
   Psr\Http\Client\ClientInterface::sendRequest(Psr\Http\Message\RequestInterface
   $request): Psr\Http\Message\ResponseInterface in /wp-content/plugins/ameliabooking/
   vendor/php-http/curl-client/src/Client.php on line 111`
 * When I try to send a test email through your plugin, it throws this error:
 * Send The Message
    Sending the message: Ajax Error
 * An unexpected error occurred:
    <p>There has been a critical error on this website.
   </p><p>[Learn more about troubleshooting WordPress.](https://wordpress.org/support/article/faq-troubleshooting/)
   </p>

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

 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16288596)
 * [@stevoli](https://wordpress.org/support/users/stevoli/) Hi,
 * I hope you are doing.
 * We have fixed this issue on our beta version; you can create a backup of your
   website and test it.
 * You can download the Beta Version from [here](https://drive.google.com/file/d/1sKCh0R3H9Iz_qtSOW6i8DteCi4hSt-jR/view?usp=share_link).
 * Thanks
 *  [alteropax](https://wordpress.org/support/users/alteropax/)
 * (@alteropax)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16331285)
 * I am still facing this issue in production with the 2.2.3 version that is currently
   available. The linked version provided in the reply above is working, but it 
   seems to only be version 2.1.10.
   The PHP Fatal Error I am getting in PHP 8 is
   the same as the OP:
 *     ```wp-block-code
       [30-Dec-2022 20:10:16 UTC] PHP Fatal error:  Declaration of Http\Client\Curl\Client::sendRequest(Psr\Http\Message\RequestInterface $request) must be compatible with Psr\Http\Client\ClientInterface::sendRequest(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface in /home/vancouverhorse/public_html/wp-content/plugins/ameliabooking/vendor/php-http/curl-client/src/Client.php on line 111
       ```
   
 *  Thread Starter [stevoli](https://wordpress.org/support/users/stevoli/)
 * (@stevoli)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16331371)
 * [@alteropax](https://wordpress.org/support/users/alteropax/) I ended up switching
   to WP Mail by WP Forms for my Amelia site, I’ve had nothing but problems with
   this plugin for the past 6+ months, it always has some sort of conflict with 
   Amelia.
 * e.g. – [https://wordpress.org/support/topic/another-fatal-error-with-latest-update/](https://wordpress.org/support/topic/another-fatal-error-with-latest-update/)
 * Just for S & G, I enabled the plugin to see if it works, and I’m getting the 
   same PHP fatal error.
    -  This reply was modified 3 years, 5 months ago by [stevoli](https://wordpress.org/support/users/stevoli/).
      Reason: followup
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16338305)
 * [@stevoli](https://wordpress.org/support/users/stevoli/) [@alteropax](https://wordpress.org/support/users/alteropax/)
 * We have updated the SDK in our latest plugin; please test it and let me know.
 * Sorry for the inconvenience.
 * Thanks
 *  Thread Starter [stevoli](https://wordpress.org/support/users/stevoli/)
 * (@stevoli)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16348306)
 * [@haseeb0001](https://wordpress.org/support/users/haseeb0001/) that seems to 
   have fixed it, thanks for the update
 *  [alteropax](https://wordpress.org/support/users/alteropax/)
 * (@alteropax)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16349107)
 * The newest version is also working for me across our network of sites. [@haseeb0001](https://wordpress.org/support/users/haseeb0001/)
   Thank you for the assistance.
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16354787)
 * [@stevoli](https://wordpress.org/support/users/stevoli/) [@alteropax](https://wordpress.org/support/users/alteropax/)
 * Great, thanks for your response.

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

The topic ‘PHP-HTTP Errors with Mailgun’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-http-errors-with-mailgun/#post-16354787)
 * Status: resolved