Title: Content Encoding Error
Last modified: August 21, 2016

---

# Content Encoding Error

 *  Resolved [peteratomic](https://wordpress.org/support/users/peteratomic/)
 * (@peteratomic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/content-encoding-error-15/)
 * “The page you are trying to view cannot be shown because it uses an invalid or
   unsupported form of compression.”
 * Got that trying to view the sitemap. Have disabled all other plugins but still
   get that error message.
 * [https://wordpress.org/plugins/google-sitemap-generator/](https://wordpress.org/plugins/google-sitemap-generator/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794676)
 * ‘Content Encoding Error’ is all I get as well.
 * Try [http://www.carlowgraphics.com/sitemap.xml](http://www.carlowgraphics.com/sitemap.xml)
 * Any ideas?
 * Kind Regards
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794696)
 * Need that one fixed. Can we get a reply from developer please?
 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794706)
 * Hi,
 * are you both using version 4.0.3 of the plugin? 4.0.3 fixed a bug with some other
   plugins which tried to compress the page.
 *  Thread Starter [peteratomic](https://wordpress.org/support/users/peteratomic/)
 * (@peteratomic)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794707)
 * Woohoo! Thanks Arnee!
 * Making a donation now!
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794712)
 * Yes, using the latest version available, which is 4.0.3, but still have mentioned
   here problem.
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794713)
 * And cause of that am afraid to update the plugin on few more websites it’s on.
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794731)
 * Updated to 4.0.4, still broken – [http://www.carlowgraphics.com/sitemap.xml](http://www.carlowgraphics.com/sitemap.xml)
 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794733)
 * Hi,
 * can you try the dev version: [http://downloads.wordpress.org/plugin/google-sitemap-generator.zip](http://downloads.wordpress.org/plugin/google-sitemap-generator.zip)
 * I’ve fixed a bug with the gzip encoding there.
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794734)
 * Hi Arnee,
 * Installed that version but still broken 🙁
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794735)
 * This is what I see when inspecting [http://www.carlowgraphics.com/sitemap.xml](http://www.carlowgraphics.com/sitemap.xml)
   page, but only error pops in front end.
 *     ```
       <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.carlowgraphics.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl"?><!-- generator="wordpress/3.4" -->
       <!-- sitemap-generator-url="http://www.arnebrachhold.de" sitemap-generator-version="4.0.4" -->
       <!-- generated-on="21/04/2014 11:20" -->
       <sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-misc.xml</loc>
       		<lastmod>2013-09-04T09:23:23+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2013-04.xml</loc>
       		<lastmod>2013-04-04T11:58:15+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2013-03.xml</loc>
       		<lastmod>2013-03-27T16:31:54+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2013-02.xml</loc>
       		<lastmod>2013-02-07T11:26:22+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2012-12.xml</loc>
       		<lastmod>2013-04-03T10:53:58+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2012-11.xml</loc>
       		<lastmod>2012-11-19T15:23:51+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2012-10.xml</loc>
       		<lastmod>2013-04-05T10:03:03+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2012-08.xml</loc>
       		<lastmod>2013-09-04T09:23:23+00:00</lastmod>
       	</sitemap>
       	<sitemap>
       		<loc>http://www.carlowgraphics.com/sitemap-pt-page-2011-04.xml</loc>
       		<lastmod>2012-08-03T18:53:20+00:00</lastmod>
       	</sitemap>
       </sitemapindex><!-- Request ID: b6e541a4a07193903f371035a660c25d; Queries for sitemap: 5; Total queries: 40; Seconds: 0.04; Memory for sitemap: 0.75MB; Total memory: 31.25MB -->
       ```
   
 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794736)
 * Hi,
 * I see what’s the problem. There is a whitespace or new line in front of the output.
   This is not allowed in a XML document.
 * For the same reason your RSS feed is broken:
    [http://www.carlowgraphics.com/feed/](http://www.carlowgraphics.com/feed/)
 * Please check your theme functions.php and see if there is whitespace before the
   opening <?php tag or after the closing ?> at the end.
 * As a temporary workaround, you can try this fix:
 * [http://wejn.org/stuff/wejnswpwhitespacefix.php.html](http://wejn.org/stuff/wejnswpwhitespacefix.php.html)
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794739)
 * Thanks, the fix worked.
 * I haven’t found any white space though and the feed still seems to be broken,
   but at least simemap is there now.
 * Strange issue. Plus it wasn’t there before the latest major update of your plugin.
   Hmm…
 * In this case I can blame the theme I guess, cause it’s #$%@^$ and we will be 
   re-designing this website.
 * I’m going to try to update your plugin on one other website with much more solid
   framework, lets see how it will behave there!
 * Cheers.
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794740)
 * On a side note, isn’t it a little bit wierd way that the sitemap shows now? [http://www.carlowgraphics.com/sitemap.xml](http://www.carlowgraphics.com/sitemap.xml)
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794741)
 * I just updated the plugin on other website, no problems there.
 * [http://www.ballyderrinhouse.ie/sitemap.xml](http://www.ballyderrinhouse.ie/sitemap.xml)
 * but, if I compare that to [http://www.carlowgraphics.com/sitemap.xml](http://www.carlowgraphics.com/sitemap.xml)
 * Hmm… Is it that the plugin has simply splited carlowgraphics website sitemap 
   to smaller sitemaps as it’s too heavy to look like on ballyderrinhouse? Or?
 * Also, is sitemap.xml.gz not to be used anymore?
 * And last one, noob question, sorry if in wrong place – what’s the purpose of 
   using ‘Include sitemap in HTML format’ option?
 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794755)
 * Hi,
 * I’ve wrote a small article about the new format here:
 * [http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/google-xml-sitemap-generator-new-sitemap-format/](http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/google-xml-sitemap-generator-new-sitemap-format/)
 * The sitemap.xml.gz URL still works, but the plugin now detects automatically 
   if the client support compression, so the .gz extension is not required anymore.
 * The HTML format was a request I have received quite frequently. Basically it 
   creates a HTML sitemap (sitemap.html) which can be read by browsers which do 
   not support the XML standard.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Content Encoding Error’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [Arne](https://wordpress.org/support/users/arnee/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/content-encoding-error-15/#post-4794755)
 * Status: resolved