ERROR: [] cURL error 56: Failure when receiving data from the peer

Hi

In my Site Health, I am getting the following message:

The REST API request failed due to an error.
ERROR: [] cURL error 56: Failure when receiving data from the peer

I am getting a HTTP 500 error and am unable to edit any pages in Wordpress.

Please help - thanks

Hi @HMR2017,

The cURl error 56 can have different reasons like:

  • Passing data to be uploaded in URL itself instead of POST request
  • Probably Proxy blocking the request to the server.
  • In some cases, the server does not support particular request, like some servers support PUT/POST any one of them.

Please contact your hosting provider about this issue.

The HTTP 500 error is a PHP fatal error, it’s most likely related to allocate more memory or your PHP version is too old. Please follow these steps:

  1. Increase the PHP Memory Limit of your server. Click here for more detailed information and how to increase the PHP memory limit.

  2. Make sure that you’re running at least PHP v5.6.x or later to avoid any WordPress related incompatibility issues(as WordPress requirements here: https://wordpress.org/about/requirements/). If you’re not sure what your server configurations and settings are, install a plugin like WP-Serverinfo (https://wordpress.org/plugins/wp-serverinfo/) and check your server info by head over to Dashboard -> WP Serverinfo area.

If you still have problems kindly get back to us with the result of the steps above and URL/User/Pass of your WordPress dashboard using the Secure Note functionality of the post to follow up the case.

Thank you.

Thank you.

This is the server info:

General

OS: Linux
Server: Apache/2.4.39 (Unix)

PHP
v7.2.17
GD: 2.1.1
Magic Quotes GPC: Off
Memory Limit: 256.0 MiB
Max Upload Size: 64.0 MiB
MYSQL

v10.1.27-MariaDB
Maximum No. Connections: 1,024
Maximum Packet Size: 64.0 MiB
Data Disk Usage: 47.0 MiB
Index Disk Usage: 3.5 MiB

I’ve raised a query with my hosting provider.

They’ve updated the PHP to 7.3 and all is good again :slight_smile:

Thanks for your help!

You’re always welcome @HMR2017! Glad this is now sorted out.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.