function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mandy08Mandy08 

VF Error Message while saving VFpage

I'm trying to create a VF Site Page and keep getting the same message even after correcting/adding closing tag.

 

"Error    - The element type "apex:page" must be terminated by the matching end-tag "</apex:page>" at line 70"

 

Now I added the closing tage (several times, several different ways) but still the error message will not let

me save my page. It is as if VF is not seeing my corrections????

 

I am totally frustrated, any help is appreciated.

 

Thanks in advance

 

Amanda

aballardaballard

You likely have something mismatched between the page begin tag and thepage  end tag.   Probably an extraneous end tag.  Probably at line 70.

blombardisblombardis

Hi Amanda,

 

I know its really frustrating when this errors happen. Obvioustly you missed to close some tag, not necessarily the page.

Can you please paste your page structure so I can help you?

 

Please provide more details.

Bruno

 

If you are not using Force.com IDE yet you can download it here:

http://wiki.developerforce.com/index.php/Force.com_IDE

Mandy08Mandy08

Thanks for the reply - below is my page code - Obviously the content is just filler for now, I simply

want to get the page structure complete and saved in VF.

 

Thanks again

Amanda

 

 

 

 

<apex:page showHeader="false" standardStylesheets="false" cache="true" expires="10800">

<head>
 <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
 <title>Page title</title>
 <link rel="stylesheet" href="atest1.css" type="text/css" media="screen">
 <!--[if IE 6]>
 <link rel="stylesheet" href="ie6.css" type="text/css" media="screen">
 <![endif]--></link>

</head>
 
<body>
<div id="container">
 <div id="header"><img src="topborder1.jpg"></img></div>
 
   <div id="mainnav">
   <ul>
   <li><a href="#">Home</a></li>
   <li><a href="#">Locations</a></li>
   </ul>
   </div>

<div id="menu">
 <h3>Latest News</h3>
   <ul>
   <li><a href="#">December 2003</a></li>
   <li><a href="#">November 2003</a></li>
   <li><a href="#">October 2003</a></li>
   <li><a href="#">September 2003</a></li>
   <li><a href="#">August 2003</a></li>
   </ul>
 <h3>Contact Us</h3>
   <ul>
   <li><a href="#">United States</a></li>
   <li><a href="#">Europe, Middle East, Africa</a></li>
   <li><a href="#">Asia</a></li> 
   </ul>
   </div>
 
<div id="contents">
 
 <div class="blogentry">
 <h2>Yes - We are still here!</h2>
 <h3>Friday, May 28, 2010</h3>
<p>
<img class="imagefloat" src="minivf1.jpg" alt="" width="100" height="100" border="0"></img>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euis
mod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
 ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. <a href="#">Duis autem vel eum</a> iriure
dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros
et accumsan et iusto odio dignissim qui blandit praesent.
</p>
<p>
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
</p></div>
 </div>

<div id="footer">
Copyright PPM Technologies Inc.,2008
</div>

</body>
</html>
</apex:page>

blombardisblombardis

Hi Mandy,

First thing I see in your page is that you close </html> but never opened it.

I don't see anything else wrong in the page, I can save it with Force.com IDE.

 

Please let me know if you can't resolve it.

 

Bruno

aballardaballard

in addition to the </html> with no matching <html> there appear to be 7 <div>s and only 6 </div>s .

blombardisblombardis

Exactly,

<div id="container"> in not closed. You need to close it before </body>

Mandy08Mandy08

That seemed to work - thank you both, I was going crazy. You would think the error message

would be more specific, because I kept looking at the apex closing page tag and saw it listed

and just did not see any other missing tags - I guess I was staring at it for too long.

 

Thanks again!!!

 

Not really familiar with the IDE, but will check it out.