0

I have Drupal7 site. It was running fine with no issues. But suddenly I am getting

This site can’t be reached The webpage at http://localhost:8080/mysite/ might be temporarily down or it may have moved permanently to a new web address. ERR_CONTENT_DECODING_FAILED

Its not the issue in any specific browser, but same error with any browser.

Checked links:-

  1. Error 330 (net::ERR_CONTENT_DECODING_FAILED):
  2. http://stefantsov.com/fixing-err_content_decoding_failed-in-apachephp/
  3. https://www.howtoforge.com/firefox-content-encoding-error-google-chrome-error-330-net-err_content_decoding_failed-unknown-error

I tried reinstall, reimport database etc things but same error persists.

Its been now about 24hours getting this error.

What should I do now to get rid of this error & re-run my site smoothly.

Other Info

  • Drupal 7
  • wamp 2.5
  • php5.5.12

Any help highly appreciated.

Community
  • 1
  • 1
Kgn-web
  • 7,047
  • 24
  • 95
  • 161
  • So what did you change **just before it stopped working** – RiggsFolly Jun 28 '16 at 11:55
  • Did you install this site from scratch, or did you download a live site to develop in using WAMPServer – RiggsFolly Jun 28 '16 at 11:58
  • @RiggsFolly. Updated password of the user using sql query – Kgn-web Jun 28 '16 at 12:10
  • @RiggsFolly. Added the following line in my module.`header('Content-Type: application/json');` – Kgn-web Jun 28 '16 at 12:10
  • @RiggsFolly.. downloaded a live site – Kgn-web Jun 28 '16 at 12:11
  • _downloaded a live site_ Well in that case you need to check your WAMPServer PHP/Apache config matches your LIVE server config – RiggsFolly Jun 28 '16 at 12:12
  • @RiggsFolly..I downloaded some weeks back after the required configuration it was running fine but after these the updates mentioned I am getting the this error. Hence I just reinstalled the site plus reimported the database from mysite.sql – Kgn-web Jun 28 '16 at 12:14

2 Answers2

3

I was facing the same issues in xampp server on localhost.

I spend almost 2-3 hours to figure it out so i am sharing the solution to save someone else time. Below is the solution that work for me.

1) Edit the php.ini files of xampp/wampp

2) Enable the extension zlib.output_compression = On If it will be Off

3) Un-comment the code from ;zlib.output_compression = On to zlib.output_compression = On in commented using ";"

kantsverma
  • 606
  • 1
  • 11
  • 31
0

Error 330 seems to be linked to when a site's HTTP response headers claim that the content is gzip encoded, but it isn’t. Are you using gzip compression? Try turning it on, or off via the htaccess file, or check here for other alternative ways to enable it. https://varvy.com/pagespeed/enable-compression.html

Tim Sparks
  • 71
  • 6