PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
p17blo
Regular
Regular


Joined: Jul 27, 2007
Posts: 77

PostPosted: Sun Aug 26, 2007 3:00 am Reply with quote Back to top

I have just been checking my site with different browsers and I noticed that IE was notifying me of a Syntax error in line 2 char 1.

When I look at the page source I notice that
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

has a hard CR and a space on the second line.

I think this page is created dynamically but which page actually constructs this header? I have checked
index.php in root
theme.php in my theme
header.html in my theme
meta.php in includes

Anyone throw any light on a filename for me to check? And if it is constructed dynamically surely a ." must have been replaced with just a "

Paul
But unless i have missed something none of the pages seems to do anything to this line
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sun Aug 26, 2007 7:47 am Reply with quote Back to top

This is in header.php. The core provided file is perfectly compliant and with no error, so you might want to compare what you have now with the original provided in the download to see what might have gone wrong.
View user's profile Send private message Visit poster's website
p17blo
Regular
Regular


Joined: Jul 27, 2007
Posts: 77

PostPosted: Sun Aug 26, 2007 9:33 am Reply with quote Back to top

Thanks, yes I am sure it is something I have done so I will give it a look over.

Paul
View user's profile Send private message
p17blo
Regular
Regular


Joined: Jul 27, 2007
Posts: 77

PostPosted: Sun Aug 26, 2007 10:54 am Reply with quote Back to top

Sorted. But the error (if it is one) is present in the disti.

The following line is from the unpack 2.10.01 dist
Quote:

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'."\n".' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";


You may not be able to spot it in the quote but there is a space in the .' "http:// section.
This is the error that IE was reporting, once the space is removed IE is happy. I don't know enough about the HTML standards to know if this is an actual error or just IE being picky, either way it doesn't stop the display of the page

Paul

Paul
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun Aug 26, 2007 1:03 pm Reply with quote Back to top

To me that sounds like IE is complaining about some Javascript on your page. That header is perfectly fine and it validates. Where are you seeing this error?
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum