PDA

View Full Version : Error while making templates


rhythmofthecosmos
07-02-2009, 04:42 PM
took a screenshot of the problem

http://i45.photobucket.com/albums/f5...Picture1-1.png (http://i45.photobucket.com/albums/f56/phi21/Picture1-1.png)

Quite confused as to what it means.

Corrosive
07-02-2009, 04:47 PM
took a screenshot of the problem

http://i45.photobucket.com/albums/f5...Picture1-1.png (http://i45.photobucket.com/albums/f56/phi21/Picture1-1.png)

Quite confused as to what it means.

I'd suggest looking between your <head> tags in code view and seeing if there are duplicate editable regions called 'Document head'. If there are then take one out.

rhythmofthecosmos
07-02-2009, 04:51 PM
hi,

I followed your advice but could not find anything in code view called document head. Strange...

Corrosive
07-02-2009, 04:52 PM
hi,

I followed your advice but could not find anything in code view called document head. Strange...

Can you post your HTML please?

rhythmofthecosmos
07-02-2009, 04:57 PM
Hi,

attached is my html :)

one thing that did happen was on line 40 (as the message says) there was the tag </head> I took this out and save as template again and got a new error message.

http://i45.photobucket.com/albums/f56/phi21/Picture3-1.png

Corrosive
07-02-2009, 05:02 PM
Hi,

attached is my html :)

one thing that did happen was on line 40 (as the message says) there was the tag </head> I took this out and save as template again and got a new error message.

http://i45.photobucket.com/albums/f56/phi21/Picture3-1.png

OK, you have at least two sets of opening and closing head tags <head> & </head>. You should only have one set. Take out the middle closing head tag </head> and the opening one after it <head> and that should leave you one at the start and one at the end. Then try saving it again.

rhythmofthecosmos
07-02-2009, 05:14 PM
Hi,

I took two tags out like you said <head>on line 19 and </head> on line 36 (i think) they were the only ones.

I saved it again but I still got the same error as the latest screen shot
http://i45.photobucket.com/albums/f5...Picture3-1.png (http://i45.photobucket.com/albums/f56/phi21/Picture3-1.png)

Attached is new html,

the error message keeps pointing to this tag <body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF">. Not sure why.

rhythmofthecosmos
07-02-2009, 05:15 PM
that code is on line 38 as I have edited since I took the last screen shot

Corrosive
07-02-2009, 05:20 PM
that code is on line 38 as I have edited since I took the last screen shot

Could you actually paste the code into a forum post plz? Wrap the code in code tags when you do and it makes it easier to see and debug. Thanks

rhythmofthecosmos
07-02-2009, 05:22 PM
<!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"><head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Lee Hughes</title>
<link rel="stylesheet" href="../stylesheet.css" type="text/css" />
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</he></script>
<type="text/javascript" src="/highslide/highslide.js"></script>
<link rel="stylesheet" type="text/css" href="/highslide/highslide.css" />
<script type="text/javascript">
// override Highslide settings here
// instead of editing the highslide.js file
hs.graphicsDir = '/highslide/graphics/';
</script>
<script type="text/css">
<!-- The structure of this file is exactly the same as 2col_leftNav.html;
the only difference between the two is the stylesheet they use -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9391160-1");
pageTracker._trackPageview();} catch(err) {}</script>


<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF">
<div id="masthead">

<font color="#FFFFFF" size="5" face="Century Gothic">The adventure of a lifetime </font>
<div id="globalNav">
<div align="right"><font color="#FFFFFF"><a href="../index.html">Home</a> | <a href="../Route/index.html">Route </a>| Photography | Media | Walk New Zealand | Sponsors | Blog </font></div>
</div>
</div>
<!-- end masthead -->
<div id="content">
<h2 align="center" id="pageName"><img src="../images/nugget-point-lighthouse.jpg" width="1150" height="270" /></h2>
<div id="navBar">
<div id="search">
<form action="#">
<label>search</label>
<input name="searchFor" type="text" size="10" />
<input name="goButton" type="submit" value="go" />
</form>
</div>
<div id="sectionLinks">
<ul>
<li>
<div align="center"><a href="#"><font color="#FFFFFF">Translater</font></a></div>
<form action="http://www.google.com/translate" >
<p>
<script language="JavaScript" type="text/javascript">



<!--



document.write ("<input name=u value="+location.href+" type=hidden>")



// -->



</script>
<input name="hl" value="en" type="hidden" />
<input name="ie" value="UTF8" type="hidden" />
<input name="langpair" value="" type="hidden" />
<input name="langpair" value="en|ar" title="Arabic" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/358406/gse_multipart12399.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|zh-CN" title="??????/Chinese (Simplified)" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/546049/gse_multipart12397.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|zh-TW" title="??????/Chinese (Traditional)" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/208681/gse_multipart12398.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|fr" title="Fran&ccedil;ais/French" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/327620/gse_multipart12413.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|de" title="Deutsch/German" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/734899/gse_multipart12400.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|it" title="Italiano/Italian" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/306145/gse_multipart12401.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|ja" title="???/Japanese" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/443122/gse_multipart12402.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|ko" title="???/Korean" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/581031/gse_multipart12403.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|pt" title="Portugu&ecirc;s/Portuguese" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/670301/gse_multipart12404.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|ru" title="???????/Russian" src="http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/111692/gse_multipart12405.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
<input name="langpair" value="en|es" title="Espa&ntilde;ol/Spanish" src= "http://photos1.blogger.com/x/blogger2/6075/564571464515337/1600/z/998398/gse_multipart12407.png" height="20" type="image" width="30" onclick="this.form.langpair.value=this.value" />
</p>
<noscript>
<p>
<input name="u" value="http://www.leehughes.co.uk" type="hidden" />
</p>
</noscript>
<p>&nbsp;</p>
</form>
</li>
</ul>
<ul>
<li>&nbsp;</li>
<li>
<div id="&lt;a&gt;"><a href="#">Future expeditions </a></div>
</li>
<li>
<div id="&lt;a&gt;"><a href="#">Links </a></div>
</li>
<li><a href="#">Facts and Stats </a></li>
<li><a href="#">Faqs</a></li>
<li><a href="#">Equiment</a>
<div id="&lt;a&gt;"><a href="mailto:rhythmofthecosmos@gmail.com">Contact me</a><a href="#"></a></div>
</li>
</ul>
</div>
<div class="relatedLinks">
<h3><font size="4">Latest blog </font></h3>
<ul>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
</ul>
</div>
<div class="relatedLinks">
<h3>&nbsp;</h3>
<ul>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
<li><a href="#">Related Link</a></li>
</ul>
</div>
<div id="advert">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p align="center"><font color="#FFFFFF" size="2" face="Century Gothic">Social media links </font></p>
</div>
<div id="headlines">
<h3 align="center"><a href="http://www.facebook.com/home.php#/profile.php?id=881485724&amp;ref=profile"><img src="../images/facebook.png" width="24" height="24" border="0" /></a><img src="../images/feed.png" width="24" height="24" /><img src="../images/flickr.png" width="24" height="24" /><a href="http://www.youtube.com/rhythmofthecosmos"><img src="../images/images.jpg" width="24" height="24" border="0" /></a><a href="http://twitter.com/leehughes21"><img src="../images/twitter.png" width="24" height="24" border="0" /></a><a href="http://www.vimeo.com/user1920247/videos"><img src="../images/vimeo.png" width="24" height="24" border="0" /></a></h3>
<p align="center">&nbsp;</p>
</div>
</div>

<div class="feature">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
="story">
<h3>&nbsp;</h3>
</div>
</div>
<!--end content -->

<!--end navBar div -->
<div id="siteInfo">
<div align="center"><font size="4">Sponsorship logos here </font></div>
</div>
<div align="center"><br />
</div>
<div id="footer">
<div align="center"><font face="Century Gothic">Copyright
&copy; www.leehughes.co.uk. All Rights Reserved</font></div>
</div>
</body>
</html>

Corrosive
07-02-2009, 05:27 PM
You've taken out too many head tags! Put a closing one here...

var pageTracker = _gat._getTracker("UA-9391160-1");
pageTracker._trackPageview();} catch(err) {}</script>

</head>

<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF">
<div id="masthead">

rhythmofthecosmos
07-02-2009, 05:30 PM
yay!!

No more error messages :)

thank you so much,

One day I swear I will get the hang of html code ;)

Corrosive
07-02-2009, 05:32 PM
yay!!

No more error messages :)

thank you so much,

One day I swear I will get the hang of html code ;)

No problem at all.

You will naturally start to look at the code more and more as you build more sites. It will become like a second language eventually, I promise.

Have fun :wink: