WordPress Updates Fails with cURL error 18: transfer closed with X bytes remaining to read

October 28, 2019

While doing routine WordPress updates I came across this error:

cURL error 18: transfer closed with X bytes remaining to read

After some investigation I found that my hosting server was unable to download files. Much of the advice I found suggests issues with cURL, PHP, or WordPress. If possible I advise checking the host server first. Verify that it can download the update file.


ABHISHEK AMBADAugust 27, 2020 at 8:47:22 am

in my case it is in localhost, I am running wordpress in xampp, What should I do??

Jason Holden
Jason HoldenAugust 27, 2020 at 11:28:17 am

@Abhishek your platform shouldn't matter. If you have console access to your hosting server I suggest logging in and attempting to download a file outside of the platform. If not, you could mock a simple cURL call (again outside of XAMPP or whatever platform you're using). If all else fails you should still be able to update Wordpress manually.

Leave Your Comment

Your email address will not be published. Required fields are marked *

about me

An information technology professional with twenty four years experience in systems administration, computer programming, requirements gathering, customer service, and technical support.