Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    110
    Plugin Contributions
    2

    Default Content Encoding Error (content_encoding_error)

    Good afternoon,

    I had a customer contact me with a problem. He was having trouble opening the item's page and I what I found online was saying to turn off the gzip compression, so I did. He then was able to get the item's page, but unable to add to cart. When he tried to add to cart he was getting:

    Content Encoding Error (content_encoding_error)

    Server response could not be decoded using encoding type returned by server.
    This is typically caused by a Web Site presenting a content encoding header of one type, and then encoding the data differently.
    After speaking with him on the phone, I asked for him to delete IE history/cookies/etc and refresh the page. It then was taking him to the customer login page, but he doesn't have an account yet so he clicked on sign up, but it just took him back to the login page. He then clicked on the "Home" link and tried again with the same results. I emailed him a link directly to the item and same thing all over again.

    Any suggestions?

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Content Encoding Error (content_encoding_error)

    Quote Originally Posted by jwlamb View Post
    ... He was having trouble opening the item's page and I what I found online was saying to turn off the gzip compression, so I did. ...
    Did you disable the gzip / deflate (and any other) output filters for PHP as well as disabling gzip in Zen Cart?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    110
    Plugin Contributions
    2

    Default Re: Content Encoding Error (content_encoding_error)

    Quote Originally Posted by lhungil View Post
    Did you disable the gzip / deflate (and any other) output filters for PHP as well as disabling gzip in Zen Cart?
    I disabled the gzip, not sure what you mean by deflate.

  4. #4
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Content Encoding Error (content_encoding_error)

    First, is everything working for YOU when you LOG in with a TEST account? If it is, could just be the "customer" is using an obscure browser, did not fully clear their cache, or may have protection software installed which is filtering the requests (cookies and website pages)... I've seen problems like this sometimes caused by badly behaving "web filters" in certain anti-virus / anti-spyware programs.

    Otherwise, read on for some more places where "compression" can be automatically applied to the web server response... Doubling up on any of them can cause problems...

    Quote Originally Posted by jwlamb View Post
    I disabled the gzip, not sure what you mean by deflate.

    Apache 2.2
    : mod_deflate Make sure this is not set for already compressed file types (or for PHP files). Some hosting providers have a section in cpanel called "Optimize Website" where you can adjust this setting.

    PHP 5: To disable "automatic" compression in edit php.ini. output_handler and zlib.output_handler should be blank and zlib.output_compression should be set to Off. You can check in Zen Cart's admin interface by clicking on "version" to see the current settings for this on your host.

    Zen Cart: To disable "automatic" GZip Compression log into Zen Cart's admin interface and go to "configuration" -> "GZip Compression".
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  5. #5
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    110
    Plugin Contributions
    2

    Default Re: Content Encoding Error (content_encoding_error)

    Quote Originally Posted by lhungil View Post
    First, is everything working for YOU when you LOG in with a TEST account? If it is, could just be the "customer" is using an obscure browser, did not fully clear their cache, or may have protection software installed which is filtering the requests (cookies and website pages)... I've seen problems like this sometimes caused by badly behaving "web filters" in certain anti-virus / anti-spyware programs.
    Thank you, yes it is working for me when logged in under my test account and as a guest. I'm going to lean more towards a not fully cleared cache and possibly anti-whateverware as he was on a government computer (that sucks, 99% of my customers are military)

    Thank you, and hopefully this was an isolated incident.

  6. #6
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    110
    Plugin Contributions
    2

    Default Re: Content Encoding Error (content_encoding_error)

    Should have added that I am using V1.5.1
    Thank you!

 

 

Similar Threads

  1. Admin showing Content Encoding Error
    By gre38382 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 27 Mar 2011, 11:53 AM
  2. Problems sending Newsletter, "content encoding error" (GoDaddy)
    By gorie in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 9 Aug 2010, 02:11 AM
  3. Site Content Encoding Error when viewed!
    By Best Price Accessori in forum General Questions
    Replies: 1
    Last Post: 21 Mar 2009, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg