Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Doctype Error


njj942

Recommended Posts

So I'm trying to trouble shoot some issues that I'm having with oscommerce. I have installed the catalog and the catalog page is up and running, but when I validate the html I'm getting a doctype error that says:

 

This page is not Valid (no Doctype found)!

Result: Failed validation, 183 Errors

Address:

Modified: (undefined)

Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4

Size: (undefined)

Content-Type: text/html

Encoding: iso-8859-1

Doctype: (no Doctype found)

Root Element: br

 

But my page includes the following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Shaw's Saddlery</title>

 

Here is a link to my page: My Catalog

 

I have tryed everything that I can think of to try and fix this will no result. Can someone please help me??? :'(

Link to comment
Share on other sites

Thanks for the help. Unfortunately that didn't solve it. I don't get it... I'm using the sts template module, maybe that is causing the errors??? I'm totally perplexed :( :( :( :( :( :(

 

i'm having the same exact problem as you. I tried the different recommended doctypes, but have no success.

Link to comment
Share on other sites

i'm having the same exact problem as you. I tried the different recommended doctypes, but have no success.

 

CAN SOMEONE PLEASE HELP ME/US!!! I would like to get the doctype error resolved even though the page displays correctly.

 

Here is the error message that I am getting when I validate the page:

This page is not Valid (no Doctype found)!
Result:	 Failed validation, 194 Errors
Address:	 
Modified:	(undefined)
Server:	Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4
Size:	(undefined)
Content-Type:	text/html
Encoding:	 iso-8859-1	
Doctype:	 (no Doctype found)	
Root Element:	 br

 

 

I have in my page the following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Shaw's Saddlery</title>
<base href="http://shawssaddlery.com/catalog/">

 

 

Here is a link so that you can run the validation as well if need be: My Catalog

 

PLEASE PLEASE HELP ME!!! Its probably something stupid that I'm overlooking, but I can't seem to figure it out and I've tried everything that I can think of.

Link to comment
Share on other sites

What "validator" are you using (URL)?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I used this one on your site:

 

http://validator.w3.org

 

Used your URL:

 

http://www.shawssaddlery.com/catalog/index.php

 

I checked the boxes:

 

Show Source

 

Verbose Output

 

Look at the "source listing" at the bottom.

 

The validator has a "problem"...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...

Thanks for the help. Unfortunately that didn't solve it. I don't get it... I'm using the sts template module, maybe that is causing the errors??? I'm totally perplexed :( :( :( :( :( :(

I was having the exact same problem and found a solution which I'd like to share. I'm using OSC v2.2 and STS template system. I had problems to center my shop when using Internet Explorer because of the doctype problem.

I tried about 39 different doctypes and finally this one worked:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

 

Take care: Do never place any other HTML (not even commented out lines) before this line, otherwise Internet Explorer will change to another mode and will ignore the following doctype definition. The top of my sts_template.html file now looks like this:

<?php DEFINE ('STS_END_CHAR', '$'); ?>

<?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html $htmlparams$>

<head>
$warning_header$
$headcontent$

 

Hope this helps...

Link to comment
Share on other sites

just a question, but do all pages have to have the doctype declaration?

 

not just product_info, but also column_left/right, header, footer?

Old question, but as long as this topic has been refreshed...

 

NO. There's a difference between a page and a file which becomes part of a page. You want the end result that the resultant page sent to the browser has one and only one DOCTYPE statement, and it's the very first thing on the page.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...