[wp-trac] [WordPress Trac] #22952: WP_HTTP can cause PHP Warnings during attempted decompression

WordPress Trac noreply at wordpress.org
Mon Apr 4 10:33:01 UTC 2016


#22952: WP_HTTP can cause PHP Warnings during attempted decompression
-------------------------------------+-----------------------------
 Reporter:  dd32                     |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  HTTP API                 |     Version:  3.3
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by lumpysimon):

 I've started seeing this a lot recently (possibly only since 4.4.2
 upgrade? Although I'm not certain of that), across several sites on
 different servers, all WordPress 4.4.2, either PHP 5.6 or 7.0.1, both live
 and on localhost.

 Here are a couple of example outputs from Query Monitor in case it's
 helpful. The first one is retrieving data from twitter.com, the second
 from maps.googleapis.com

 {{{
 Warning:
 gzinflate(): data error

 Location:
 wp-includes/class-wp-http-encoding.php:58

 Call stack:

 gzinflate()
  wp-includes/class-wp-http-encoding.php:58
 WP_Http_Encoding::decompress()
  wp-includes/class-wp-http-curl.php:293
 WP_Http_Curl->request()
  wp-includes/class-http.php:367
 WP_Http->_dispatch_request()
  wp-includes/class-http.php:277
 WP_Http->request()
  wp-includes/class-http.php:412
 WP_Http->post()
  wp-includes/http.php:187
 wp_remote_post()
  wp-content/themes/Avada/widgets/tweets-widget.php:67
 Tweets_Widget->widget()
  wp-includes/class-wp-widget.php:347
 WP_Widget->display_callback()
  wp-includes/widgets.php:729
 dynamic_sidebar('avada-footer-widget-1')
  wp-content/themes/Avada/footer.php:32
 load_template('~/wp-content/themes/Avada/footer.php')
  wp-includes/template.php:521
 locate_template()
  wp-includes/general-template.php:85
 get_footer()
  wp-content/themes/Avada/page.php:188
 }}}

 {{{
 Warning:
 gzinflate(): data error

 Location:
 wp-includes/class-wp-http-encoding.php:58

 Call stack:

 gzinflate()
  wp-includes/class-wp-http-encoding.php:58
 WP_Http_Encoding::decompress()
  wp-includes/class-wp-http-curl.php:293
 WP_Http_Curl->request()
  wp-includes/class-http.php:367
 WP_Http->_dispatch_request()
  wp-includes/class-http.php:277
 WP_Http->request()
  wp-includes/class-http.php:430
 WP_Http->get()
  wp-includes/http.php:170
 wp_remote_get()
  wp-content/plugins/nfa/inc/shortcodes.php:266
 nfa_shortcodes->location_lookup()
  wp-content/plugins/nfa/inc/shortcodes.php:317
 nfa_shortcodes->map()
  wp-includes/shortcodes.php:326
 do_shortcode_tag()
  Unknown location
 preg_replace_callback()
  wp-includes/shortcodes.php:223
 do_shortcode()
  wp-includes/plugin.php:235
 apply_filters('the_content')
  wp-content/themes/nfa/sidebar.php:6
 load_template('~/wp-content/themes/nfa/sidebar.php')
  wp-includes/template.php:521
 locate_template()
  wp-includes/general-template.php:125
 get_sidebar('page')
  wp-content/themes/nfa/page.php:28
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22952#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list