The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> <!DOCTYPE error
carlhancock
post Jul 16 2012, 05:49 PM
Post #1





Group: Members
Posts: 4
Joined: 16-July 12
Member No.: 17,449



Can anyone please help??

When viewing source code in Dreamweaver I have the following code right at the top as would be expected.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">


The web page looks find when viewed locally and the code should be 100% fine, but when put on the internet I get a < visible in the top left of the screen and when doing a view source, I get the following (note the addition of the extra < )


<<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


The extra < is not there in there in the local file (opened in notepad to check), so seems to be added only when that file is put online. Has anyone got any idea what's going on and more to the point, how to fix it??

Thanks in advance
Carl
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 16 2012, 10:13 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Are you sure you uploaded the right file and not another version of it? Or you could have uploaded it to the wrong directory and are viewing an old copy of your index.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
carlhancock
post Jul 17 2012, 02:55 AM
Post #3





Group: Members
Posts: 4
Joined: 16-July 12
Member No.: 17,449



Definitely the right file that's been uploaded to the right place. I've checked everything I can think of, which is why I'm so perplexed!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 17 2012, 03:32 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



What if you delete or rename the file on the server and upload again. Do you still get the extra "<"?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
carlhancock
post Jul 17 2012, 04:02 AM
Post #5





Group: Members
Posts: 4
Joined: 16-July 12
Member No.: 17,449



Tried deleting the whole site and uploading again. Get it on new pages, regardless of name, though there is a random element.

E.g. occuring here: http://www.holisticcentre.co.uk/about_the_centre.htm

...but not here:

http://www.holisticcentre.co.uk/full_therapy_list.htm

It's almost as though the hosting company Verio are adding the extra < as I don't have it with other websites that are hosted elsewhere. Problem is, they deny that this is possible.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 17 2012, 05:37 AM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



I'm stumped. I can't explain how this happens. blink.gif

Unless you after all upload other files than you think. Do you use DW for FTP and does there exist other/older versions of the site on your HD?

There is also what's called server cashing, but I don't know if it's used anymore. Have you at any point created a file with that mistake in it that you know of?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
carlhancock
post Jul 17 2012, 06:00 AM
Post #7





Group: Members
Posts: 4
Joined: 16-July 12
Member No.: 17,449



Don't worry Pandy, I appreciate your efforts.

I'm beginning to conclude it's a Verio issue as I took a page from another site and hosted it on Verio where the problem occurs again:

http://www.holisticcentre.co.uk/Halo/

...and also on 1&1, where there's no problem:

http://www.carlhancockmarketing.co.uk/Halo/

I did point this out to Verio and they just said it was my problem!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 17 2012, 06:30 AM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



That's crazy! Never heard about anything like it. Why do they meddle with your files in the first place? mad.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jul 17 2012, 09:20 AM
Post #9


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Jul 17 2012, 12:37 PM) *

There is also what's called server cashing, but I don't know if it's used anymore.

To rule that out, make sure you upload files with changed content (say "version 2").

Also, do you use the same FTP program for both Verio and 1&1?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 11:30 PM