Content Encoding Error
#1
Posted 30 January 2012 - 07:12 PM
i have recently created a website, i have now uploaded it and i get this error in firefox:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Do any of you guys know what the problem could be?
Thanks
Ashley
#2
Posted 30 January 2012 - 07:38 PM
What have you used to build the site?
#5
Posted 30 January 2012 - 08:23 PM
Bomb, on 30 January 2012 - 08:22 PM, said:
http://autowasherrepairs.co.uk/
Thanks
#6
Posted 30 January 2012 - 08:32 PM
Do you use gZip compression on your server?
This post has been edited by Bomb: 30 January 2012 - 08:40 PM
#7
Posted 30 January 2012 - 08:45 PM
Bomb, on 30 January 2012 - 08:32 PM, said:
Do you use gZip compression on your server?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/auto_washer_repairs.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Auto Washer Repairs | Washing Machine Repairs Birmingham</title>
<!-- InstanceEndEditable -->
<style type="text/css" media="all">
<!--
@import url("css/screen.css");
-->
</style>
<!--[if IE 5]>
<style type="text/css">
/* IE 5 does not use the standard box model, so the column widths are overidden to render the page correctly. */
#outerWrapper #contentWrapper #leftColumn1 {
width: 0px;
}
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
/* The proprietary zoom property gives IE the hasLayout property which addresses several bugs. */
#outerWrapper #contentWrapper, #outerWrapper #contentWrapper #content {
zoom: 1;
}
</style>
<![endif]-->
<!--[if lt IE 7]>
<style type="text/css">
img, div {
behavior: url("../CSSSculptor/2ColumnFixedLeftSidebarCustom01_NewDesign_images/iepngfix.htc");
}
</style>
<![endif]-->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script type="text/javascript" src="CSSMenuWriter/cssmw/menu.js"></script>
<!-- InstanceBeginEditable name="menu_ie" -->
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("../CSSMenuWriter/cssmw/menu_ie.css");
</style>
<![endif]-->
<!-- InstanceEndEditable -->
<meta name="title" content="Auto Washer Repairs | Washing Machine Repairs Birmingham" />
<meta name="language" content="en-GB" />
<meta name="author" content="www.moonwalkmedia.co.uk" />
<meta name="copyright" content="www.moonwalkmedia.co.uk" />
<meta name="robots" content="INDEX, FOLLOW" />
<meta name="revisit-after" content="15 days" />
<meta name="document-class" content="Completed" />
<meta name="document-classification" content="Financial" />
<meta name="document-rights" content="Copyrighted Work" />
<meta name="document-rating" content="General" />
<meta name="document-distribution" content="Global" />
</head>
<body>
<div id="outerWrapper">
<div id="header">
<div id="headerInfoContainer"><span class="telNumberFont">0121 242 1727 </span></div>
</div>
<div id="contentWrapper">
<div id="content">
<!-- InstanceBeginEditable name="Banner" --><img src="images/banner_images/image1.jpg" alt="" width="680" height="300" /><!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="MainContent" -->
<h1> </h1>
<h1>Auto Washer Repairs</h1>
<hr />
<p>Welcome to Auto Washer Repairs we provide a wide range of washing machine services in the Birmingham area.</p>
<p>We specialise in repairs, we offer Washing Machine Repairs in Birmingham and the surrounding area, if you have Washing Machine Problems give Auto Washer Repairs a call today, we offer a free call out charge.</p>
<p><BR>
Our main services include:</p>
<ul>
<li><a href="http://www.autowasherrepairs.co.uk/washingmachinerepairs.php">Washing Machine Repairs</a></li>
<li><a href="http://www.autowasherrepairs.co.uk/washingmachinespares.php">Washing Machine Spares</a></li>
<li><a href="http://www.autowasherrepairs.co.uk/washingmachineproblems.php">Washing Machine Problems</a></li>
</ul>
<p><BR>
</p>
<p>We also sell new and reconditioned washing machines, so give us a call today for washing machine sales and repairs in Birmingham.</p>
<!-- InstanceEndEditable -->
</div>
<div id="leftColumn1">
<div id="mainNavigation">
<?php require_once("CSSMenuWriter/cssmw/menu.php"); ?>
</div>
<script type="text/javascript">if(window.attachEvent) { window.attachEvent("onload", function() { cssmw.intializeMenu('cssmw',{select_current: 0, orientation: 2}); }); } else if(window.addEventListener) { window.addEventListener("load", function() { cssmw.intializeMenu('cssmw',{select_current: 0, orientation: 2}); }, true); }</script>
<p><img src="images/ad01.jpg" width="220" height="300" alt="Personal Finance Advice" /></p>
<hr />
<h3>Auto washer repairs<br />
Call Now On : 0121 242 1727 </h3>
<hr />
<img src="images/ad02.png" alt="" width="220" height="300" />
<hr />
<h3>auto washer repairs<br />
Call Now On : 0121 242 1727 </h3>
<hr />
</div>
</div>
<div id="fixedFooter"><a href="http://www.autowasherrepairs.co.uk/index.php">Auto Washer Repairs</a><br />
<a href="http://www.autowasherrepairs.co.uk/sitemap.php" class="linkStyleWhite">Sitemap</a></div>
</div>
</body>
<!-- InstanceEnd --></html>
Hope this helps
#8
Posted 30 January 2012 - 08:51 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">Try replacing all of that with this...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I think it is to do with your gzip. Can you edit your .htaccess file?
This post has been edited by Bomb: 30 January 2012 - 08:57 PM
#9
Posted 30 January 2012 - 08:57 PM
Bomb, on 30 January 2012 - 08:51 PM, said:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">Try replacing all of that with this...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I think it is to do with your gzip.
Wow I should have picked up on that. Thank you Bomb
#10
Posted 30 January 2012 - 09:01 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
to this...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>just to see if you get the error again.
#11
Posted 30 January 2012 - 09:05 PM
Bomb, on 30 January 2012 - 09:01 PM, said:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
to this...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>just to see if you get the error again.
Yes, the error is back now, would you recommend replacing it with this again?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
#14
Posted 30 January 2012 - 09:17 PM
# compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension: <Files *.html> SetOutputFilter DEFLATE </Files>
That should sort your file compression out again.
#15
Posted 30 January 2012 - 09:29 PM
Bomb, on 30 January 2012 - 09:17 PM, said:
# compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension: <Files *.html> SetOutputFilter DEFLATE </Files>
That should sort your file compression out again.
Awesome! thanks again Bomb.
Help















