[wp-trac] [WordPress Trac] #38226: "cURL error 23: Failed writing body" when updating plugins or themes

WordPress Trac noreply at wordpress.org
Tue Oct 4 11:28:02 UTC 2016


#38226: "cURL error 23: Failed writing body" when updating plugins or themes
-----------------------------+-------------------------------------
 Reporter:  SergeyBiryukov   |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  4.6.2
Component:  Upgrade/Install  |    Version:  4.6
 Severity:  normal           |   Keywords:  has-patch needs-testing
  Focuses:                   |
-----------------------------+-------------------------------------
 After upgrading to 4.6, [https://ru.wordpress.org/support/topic/ошибка-
 обновления-плагинов-после-уст/ 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list