ayok Posted May 2, 2012 Share Posted May 2, 2012 Hi, I got a problem with w3c html checker (The client checked it). It gives me this error for this specific site http://www.watersport4all.nl like: A fatal error occurred when attempting to decode response body from http://www.watersport4all.nl. Either we do not support the content encoding specified ("none"), or an error occurred while decoding it. The error was: Don't know how to decode Content-Encoding 'none' I don't really understand because if I take a look on the source codes it shows me charset=utf-8. The site is made with joomla! cms. Could someone please help me out to find the problem here? Thank you! Ayok Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/ Share on other sites More sharing options...
colleyboy Posted May 3, 2012 Share Posted May 3, 2012 Have you checked the core settings of the joomla package to see if there is a default encoding type there. Perhaps it is set to "none" there? Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1342782 Share on other sites More sharing options...
haku Posted May 6, 2012 Share Posted May 6, 2012 What does your code actually look like? Maybe you have the wrong syntax. Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343500 Share on other sites More sharing options...
ayok Posted May 8, 2012 Author Share Posted May 8, 2012 Is it possible that the server settings cause this?? because I have now two the same websites in different domains. One you can validate, and the other not... Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343905 Share on other sites More sharing options...
ayok Posted May 8, 2012 Author Share Posted May 8, 2012 this is the same site in other server http://validator.w3.org/check?uri=http%3A%2F%2Fwater4dump.yoursite.nl&charset=%28detect+automatically%29&doctype=Inline&group=0 This is the real site http://validator.w3.org/check?uri=http%3A%2F%2Fwww.watersport4all.nl&charset=%28detect+automatically%29&doctype=Inline&group=0 which is blocked by w3c site Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343931 Share on other sites More sharing options...
PFMaBiSmAd Posted May 8, 2012 Share Posted May 8, 2012 Any chance the site that doesn't work is checking the user agent string and is outputting different things depending on the user agent being used? I don't know what user agent string the w3.org validator uses, but it might not be what your site expects. Also, I'm pretty sure that w3.org validator does not accept cookies, so if your site outputs different content with/without cookies, you might not be outputting the same content to the w3.org validate that it does to a browser. I just tried a different online validator - http://www.htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fwww.watersport4all.nl%2F&warnings=yes&input=yes and the site can be processed. Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343941 Share on other sites More sharing options...
PFMaBiSmAd Posted May 8, 2012 Share Posted May 8, 2012 Also, I just used the html source that I saved from my browser (Firefox) and it validates processes at the w3.org validator. I would say this is most likely a user agent issue. Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343943 Share on other sites More sharing options...
kicken Posted May 8, 2012 Share Posted May 8, 2012 For some reason your site is sending a Content-Encoding: none header in the response, that is what is causing the validator to complain. I have no idea why it would be sending this header, but you need to check into that and find out. Go over your install and see if it is a setting anywhere. Maybe someone more familiar with joomla could be of more assistance. Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343946 Share on other sites More sharing options...
ayok Posted May 8, 2012 Author Share Posted May 8, 2012 Also, I just used the html source that I saved from my browser (Firefox) and it validates processes at the w3.org validator. I would say this is most likely a user agent issue. Hi thanks.. Sorry, I don't really understand what do you mean by user agent issue. Is it browser issue? Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343953 Share on other sites More sharing options...
ayok Posted May 8, 2012 Author Share Posted May 8, 2012 The site that is blocked is exactly the same site with the other one which is not blocked by w3c, only in different domain (production and development server). Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1343955 Share on other sites More sharing options...
PFMaBiSmAd Posted May 8, 2012 Share Posted May 8, 2012 What kicken is indicating is your web page is sending a content encoding header of none. The site that can be validated at the w3.org validator is sending a specific content encoding header of gzip (i.e. your joomla global server settings are set up to compress the html output.) Quote Link to comment https://forums.phpfreaks.com/topic/261944-sorry-this-document-cannot-be-checked/#findComment-1344010 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.