• Resolved Nick

    (@pilotnick)


    Hi,

    The Sendgrid plugin is network activated and is generating a gzinflate(): data error. Please see the excerpt from Query Monitor below:

    Warning gzinflate(): data error 2 wp-includes/class-wp-http-encoding.php:58 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/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:85
    Sendgrid_Tools::check_api_key_scopes()
    wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:135
    Sendgrid_Tools::check_api_key()
    wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-statistics.php:69
    Sendgrid_Statistics::add_statistics_menu()
    Unknown location
    do_action(‘admin_menu’)
    wp-admin/includes/menu.php:149 Plugin: sendgrid-email-delivery-simplified

    https://www.ads-software.com/plugins/sendgrid-email-delivery-simplified/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Nick

    (@pilotnick)

    Is anyone planning on addressing this? I also opened a support ticket on your website over a week ago and have still heard nothing back.

    Yes, me too.
    I was also having 1-2 seconds of delay because of hhtp requests happening on all my admin pages. So I recently uninstalled the plugin and installed WP Sendgrid.

    Thread Starter Nick

    (@pilotnick)

    Hey SendGrid!

    Seriously! Are you not going to respond to this error at all? You’ve completely ignored this question on your forum and have completely ignored my support ticket on your website.

    I would expect better for a Denver Company. Seriously?

    Anonymous User 12640152

    (@anonymized-12640152)

    Hi.
    We apologize for the delay.

    We have investigated this issue but we were unable to reproduce it.
    Can you please provide us with the PHP and WordPress version that you are using?
    The cause of this issue is that in our plugin we call WordPress functions like wp_remote_post(), for example, when you send an email.

    You should be aware that other users have experienced the same issue that you are mentioning and it seems to be unrelated to our plugin, but rather it is a WordPress issue.
    The WordPress Support Forum has a lot of threads related to this issue as you can see here : https://www.ads-software.com/search/gzinflate+error

    In the meantime we’re working on finding a solution for this.
    This is a ‘Warning’ not an ‘Error’ and can probably be ignored until we find a solution.

    I have WP 4.5.2 and PHP 7.0.5 and apache 2.4. I am experiencing this, too. Query monitor reports the PHP error as a PHP WARNING, gzinflate(): data error

    call stack as this:

    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:433
    WP_Http->_dispatch_request()
     wp-includes/class-http.php:342
    WP_Http->request()
     wp-includes/class-http.php:496
    WP_Http->get()
     wp-includes/http.php:170
    wp_remote_get()
     wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:85
    Sendgrid_Tools::check_api_key_scopes()
     wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:135
    Sendgrid_Tools::check_api_key()
     wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-statistics.php:69
    Sendgrid_Statistics::add_statistics_menu()
     wp-includes/plugin.php:525
    do_action('admin_menu')
     wp-admin/includes/menu.php:149

    same here, php7 as well

    PHP Error Count Location Call Stack Component
    Warning gzinflate(): data error 1 wp-includes/class-wp-http-encoding.php:58 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:433
    WP_Http->_dispatch_request()
    wp-includes/class-http.php:342
    WP_Http->request()
    wp-includes/class-http.php:496
    WP_Http->get()
    wp-includes/http.php:170
    wp_remote_get()
    wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:43
    Sendgrid_Tools::check_username_password()
    wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-statistics.php:74
    Sendgrid_Statistics::add_statistics_menu()
    wp-includes/plugin.php:525
    do_action(‘admin_menu’)
    wp-admin/includes/menu.php:149

    Plugin: sendgrid-email-delivery-simplified

    Same thing here. Running PHP 5.5.32 and WP 4.5.2

    Also getting this error with WP 4.5.3 with PHP 5.4.42. Query monitor output:

    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:433
    WP_Http->_dispatch_request()
     wp-includes/class-http.php:342
    WP_Http->request()
     wp-includes/class-http.php:496
    WP_Http->get()
     wp-includes/http.php:170
    wp_remote_get()
     wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:85
    Sendgrid_Tools::check_api_key_scopes()
     wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-tools.php:135
    Sendgrid_Tools::check_api_key()
     wp-content/plugins/sendgrid-email-delivery-simplified/lib/class-sendgrid-statistics.php:69
    Sendgrid_Statistics::add_statistics_menu()
     Unknown location
    do_action('admin_menu')
     wp-admin/includes/menu.php:149

    Did some more digging and found that it seems to do with the decompress arugment defaulting to true for the WP_Http class. If you change the SendGrid class-sendgrid-tools.php to include a 'decompress' => false argument it seems to remove the error and still function correctly. Don’t know if this is proper, but it seems like a fix:

    L80 :

    $args = array(
          'headers' => array(
            'Authorization' => 'Bearer ' . $apikey ),
          'decompress' => false
        );

    I pulled it from this SO thread:
    WordPress gzinflate() error

    Anonymous User 12640152

    (@anonymized-12640152)

    Hi.

    We have reproduced this warning and we can confirm that the fix CaliperCreative mentioned removes the warning displayed by Query Monitor.

    This fix will be included in our next release.

    Anonymous User 12640152

    (@anonymized-12640152)

    This issue has been fixed in the latest release (1.9.0).
    Thank you for reporting this issue to us.

    If you still encounter this issue or a similar one please open a new Support thread.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Getting a gzinflate(): data error’ is closed to new replies.