#38226 closed defect (bug) (fixed)
"cURL error 23: Failed writing body" when updating plugins or themes
Reported by: | SergeyBiryukov | Owned by: | dd32 |
---|---|---|---|
Milestone: | 4.7.1 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | HTTP API | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
After upgrading to 4.6, some users reported an error when upgrading plugins or themes:
Download failed. cURL error 23: Failed writing body (624 != 811)
Apparently it happens if mbstring.func_overload
is enabled and body length is calculated incorrectly.
Previously, this was solved by using mbstring_binary_safe_encoding()
/reset_mbstring_encoding()
, see [25348].
However, [37428] removed those calls, and it seems like Requests is not mbstring-aware.
Attachments (1)
Change History (10)
#3
@
8 years ago
opened https://github.com/rmccue/Requests/issues/244 upstream
#4
@
8 years ago
Got at least one report that the patch does resolve the issue.
Found another thread on the English forums, commented there:
https://wordpress.org/support/topic/after-update-to-46-keep-getting-curl-error-23/page/2/#post-8157376
38226.patch restores
mbstring_binary_safe_encoding()
/reset_mbstring_encoding()
calls.Needs testing on the affected installs.