Topic: W3 CSS Validation Error Pages that link to <a href="https://ozoneasylum.com/backlink?for=21966" title="Pages that link to Topic: W3 CSS Validation Error" rel="nofollow" >Topic: W3 CSS Validation Error\

 
Author Thread
WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

IP logged posted posted 05-27-2004 21:16 Edit Quote

I am unable to validate a page for CSS by referer. I am using mod_rewrite to rewrite the URL's which might cause a problem, but when I test the XHTML it checks the page fine.

You can see the error by click on "Validate CSS" on the bottom of the page: http://www.codetown.org/quotes

quote:
Target: http://www.codetown.org/quotes

I/O Error: http://www.codetown.org/quotes: Not Acceptable



The above is the response I get from the validator. It validates my main page fine. Just wondering if anyone has had this happen before and is there a fix for it?

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 05-27-2004 21:21 Edit Quote

This seems to explain it:

quote:
What does I/O Error: Not Acceptable mean?

The remote webserver returned an error code, probably 406 "Not Acceptable". This means that the requested resource is not acceptable for the CSS Validator due to the Accept-* headers it sent. If the CSS Validator requests e.g. http://www.example.org/style the HTTP request would look similar to

GET /style HTTP/1.1
Cache-Control: no-cache
Connection: keep-alive
Date: Mon, 07 Jul 2003 21:22:44 GMT
Pragma: no-cache
Accept: text/css,text/html,text/xml,application/xhtml+xml,
application/xml,image/svg+xml,*/*;q=0
Accept-Language: de,en
Host: www.example.org
User-Agent: Jigsaw/2.2.0 W3C_CSS_Validator_JFouffa/2.0

Note that the value of the Accept-Language header is copied from your browsers request. The value de, en means that you have configured your browser to accept content in either german or english. If the requested resource is available in japanese and french but not in german or english, you will get the Not Acceptable error. Likewise for the Accept header.

If the resource you are trying to validate is generated by some scripting language like PHP and you get this error, the web server is probably misconfigured. If it's an Apache webserver, there is probably a line like

AddType application/x-httpd-php .php

in one of the configuration files. You should use the AddHandler directive instead. Check with your webmaster or web hosting provider if you don't know how to change the configuration.



http://www.websitedev.de/css/validator-faq

Hope that helps.

___________________
Emps

The Emperor dot org | Justice for Pat Richard | FAQs: Emperor | Site Reviews | Reception Room

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

IP logged posted posted 05-27-2004 21:39 Edit Quote

Ah, I didn't set the server up to handle no-extensions. So it is sending back a bad header. Thanks for the help emps.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu