Web Design Forum: Content Encoding Error - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

Quick General Chat Guidelines

Please note: posting of content which is illegal or offensive is not permitted. Be nice and play fair!

Examples of content we don't like: torrents, warez, spam, racism or any form of personal attack. If you aren't sure please ask a mod and we'll be happy to help.

Thanks for reading!
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Content Encoding Error

#1 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 07:12 PM

Hi all,

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
0

#2 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 07:38 PM

Clear your cache & disable any browser plugins.

What have you used to build the site?
0

#3 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 07:39 PM

View PostBomb, on 30 January 2012 - 07:38 PM, said:

Clear your cache & disable any browser plugins.

What have you used to build the site?


I have done both and tried viewing the site on other computers.


I used Dreamweaver to build the site.
0

#4 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 08:22 PM

Do you have a link?
0

#5 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 08:23 PM

View PostBomb, on 30 January 2012 - 08:22 PM, said:

Do you have a link?


http://autowasherrepairs.co.uk/

Thanks
0

#6 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 08:32 PM

Could you also post your html as well please?

Do you use gZip compression on your server?

This post has been edited by Bomb: 30 January 2012 - 08:40 PM

0

#7 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 08:45 PM

View PostBomb, on 30 January 2012 - 08:32 PM, said:

Could you also post your html as well please?

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>&nbsp;</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
0

#8 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 08:51 PM

You are declaring the Doctype twice...

<!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

0

#9 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 08:57 PM

View PostBomb, on 30 January 2012 - 08:51 PM, said:

You are declaring the Doctype twice...

<!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
0

#10 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 09:01 PM

Yes but it could also of been the gzip, out of interest try changing this...

<!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.
0

#11 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 09:05 PM

View PostBomb, on 30 January 2012 - 09:01 PM, said:

Yes but it could also of been the gzip, out of interest try changing this...

<!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">

0

#12 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 09:05 PM

Yes. Do you have a .htaccess file?
0

#13 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 09:07 PM

View PostBomb, on 30 January 2012 - 09:05 PM, said:

Yes. Do you have a .htaccess file?

Yes i do.
0

#14 User is online   Bomb 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 694
  • Joined: 09-October 10
  • Reputation: 88
  • Gender:Male
  • Location:Cheshire, UK
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 30 January 2012 - 09:17 PM

Add this to it...

# 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.
0

#15 User is offline   Ashley- 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 17-December 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 January 2012 - 09:29 PM

View PostBomb, on 30 January 2012 - 09:17 PM, said:

Add this to it...

# 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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users