Discussion:
Unbalanced Instance Begin Tag Error
(too old to reply)
RJS123
19 years ago
Permalink
I am having an odd issue with a page I have created that uses templates, every
time I go to update the child pages I get this error: ?unbalanced Instance
begin tag?. It is not on all of the pages just some of them.

I have noticed that when I open a child page, that it is marked that there are
changes to be saved. If I save the change it become ones of the pages that the
error is on.

Here is what my template looks like:


<%@LANGUAGE="vbscript" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body {
background-image: url();
background-color: #CCB48F;
}
-->

</style>


</head>

<body>

<p align="center"><a href="../index.asp"><img
src="../Images/coffee-tea-header_back.jpg" width="900" height="150"
border="0"></a></p>
<p>
<table width="900" border="0" align="center">
<tr>
<td width="200" height="195" rowspan="3" align="left"
valign="top"><!--#include file="main_tea_nav.asp" --></td>
<td width="690" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top"><!-- TemplateBeginEditable
name="maininformationarea" -->
<p>maininformationare</p>

<!-- TemplateEndEditable --></td>
</tr>
<tr>
<td align="left" valign="top"><!-- TemplateBeginEditable name="SubMenu"
--><!-- TemplateEndEditable --></td>
</tr>
<tr align="left" valign="top">
<td height="195" colspan="2"><p>
<!--#include file="footers.asp" -->

</p> </td>
</tr>
</table>
<p>
</p>
</body>
</html>

Any help with this matter would be appreciated.

Jim
Murray *TMM*
19 years ago
Permalink
Do you have <html>, <head>, or <body> tags in your include files?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
...
RJS123
19 years ago
Permalink
Nope just checked there are no <html>, <head>, or <body> tags in either inlcude file.
Murray *TMM*
19 years ago
Permalink
Then show me a child page, please.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
Nope just checked there are no <html>, <head>, or <body> tags in either inlcude file.
RJS123
19 years ago
Permalink
Here is a child:

<!-- InstanceBegin template="/Templates/main_tea_temp.dwt.asp"
codeOutsideHTMLIsLocked="false" --><!-- InstanceBegin
template="/Templates/main_tea_temp.dwt.asp" codeOutsideHTMLIsLocked="false"
--><meta name="Coffee-and-Tea-Online.com" content="">
<link rel="shortcut icon" href="favicon.ico" >
<%@LANGUAGE="vbscript" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Coffee-Tea-Online.com, Iced Tea</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->












<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-image: url();
background-color: #CCB48F;
}
-->

</style>
<meta name="Coffee-and-Tea-Online.com" content="">
<link rel="shortcut icon" href="favicon.ico" >
<meta name="description" content="Reference site covering everything related
to coffee and tea, from growth cycles, brewing and tasting to health
issues."><meta name="keywords" content="Coffee, Tea, Tea Pot, Coffee Maker,
Caffeine, Health Effects, Tea Bag">

</head>

<body>

<p align="center"><a href="Templates/index.asp"><img
src="Images/coffee-tea-header_back.jpg" width="900" height="150"
border="0"></a></p>
<p>
<table width="900" border="0" align="center">
<tr>
<td width="200" height="195" rowspan="3" align="left"
valign="top"><!--#include file="Templates/main_tea_nav.asp" --></td>
<td width="690" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td align="left" valign="top"><!-- InstanceBeginEditable
name="maininformationarea" -->
<h1 align="center">&nbsp;</h1>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td align="left" valign="top"><!-- InstanceBeginEditable name="SubMenu" -->
<!--#include file="Nav_making_Tea.asp" -->
<!-- InstanceEndEditable --></td>
</tr>
<tr align="left" valign="top">
<td height="195" colspan="2"><p>
<!--#include file="Templates/footers.asp" -->

</p> </td>
</tr>
</table>
<p>
</p>
</body>
<!-- InstanceEnd --></html>
Murray *TMM*
19 years ago
Permalink
Spawn a NEW child from this template, and paste the first 25 lines of that
new child page's code into a reply, please.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
...
RJS123
19 years ago
Permalink
<%@LANGUAGE="vbscript" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/main_tea_temp.dwt.asp"
codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-image: url();
background-color: #CCB48F;
}
-->

</style>


</head>

<body>
Murray *TMM*
19 years ago
Permalink
So the new child page looks right - it's only these other pages that are
hosed. How did they get this way - any idea?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
...
RJS123
19 years ago
Permalink
That is what I am trying to figure and how to fix it. I have no idea what
happened, I have another site that uses template etc and I am having no issues.
It just this one site.

Any ideas what caused and how do I fix it?
Murray *TMM*
19 years ago
Permalink
I know how to fix it, but I have no idea what might have caused it.

How many pages are there like this?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
That is what I am trying to figure and how to fix it. I have no idea what
happened, I have another site that uses template etc and I am having no issues.
It just this one site.
Any ideas what caused and how do I fix it?
RJS123
19 years ago
Permalink
Right now this is about 6 or 7 that are screwed up. But every time I open one of the child files and save it is then broken also. There is over 150 children.
Murray *TMM*
19 years ago
Permalink
Post by RJS123
Right now this is about 6 or 7 that are screwed up. But every time I open
one of the child files and save it is then broken also. There is over 150
children.
Hmm - so which is it? 6/7 or 150?

Take one of these child pages, save it with a new name, and APPLY the
template to that page. Does it fix it?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
Right now this is about 6 or 7 that are screwed up. But every time I open
one of the child files and save it is then broken also. There is over 150
children.
RJS123
19 years ago
Permalink
Right now there are 7 pages that are broken, but every time I open a file and save it becomes broken.
Murray *TMM*
19 years ago
Permalink
What happens when you open one of those child pages, and then use MODIFY |
Templates > Update Current Page? Is it still broken?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
Right now there are 7 pages that are broken, but every time I open a file
and save it becomes broken.
RJS123
19 years ago
Permalink
When I MODIFY | Templates > Update Current Page, I get the error, Unbalanced Instance begin tag.....
Murray *TMM*
19 years ago
Permalink
Try this:

1. Create a new page from the template.
2. Copy and paste content from an existing page (one that's broken) into
the new page.
3. Close the existing page, and save the new page with the old page's name.

Then try looking at the new page - is it broken again?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
When I MODIFY | Templates > Update Current Page, I get the error,
Unbalanced Instance begin tag.....
RJS123
19 years ago
Permalink
That seemed to work, I was able to fix one page.

I really hope I am not going to have to do that for the whole site....

Any ideas on an easier fix or what caused this?
Murray *TMM*
19 years ago
Permalink
I thought you said that there were only 6/7 broken pages - is that right?

And, no, I have no idea what might have caused it. I have never had it
happen to any of my templates....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
That seemed to work, I was able to fix one page.
I really hope I am not going to have to do that for the whole site....
Any ideas on an easier fix or what caused this?
RJS123
19 years ago
Permalink
There is currently 7 pages, broken, but every time I open a page in the site it
also breaks. I have said this several times.

So as it stands I am going to have to open 163 pages and do this fix. Not
knowing what caused the problem to beging with....
Murray *TMM*
19 years ago
Permalink
Aha - I see what you are saying. Hmm. I need to think about this.

Can you zip the site and send it to me?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
There is currently 7 pages, broken, but every time I open a page in the site it
also breaks. I have said this several times.
So as it stands I am going to have to open 163 pages and do this fix. Not
knowing what caused the problem to beging with....
RJS123
19 years ago
Permalink
Sure to what address?
Murray *TMM*
19 years ago
Permalink
Post by RJS123
forums at domain <<
Replace the word domain with 'great-web-sights.com'.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by RJS123
Sure to what address?
lebiram68
19 years ago
Permalink
I have seen that some tags are little tricky; It seems that tags are not included when they are suppose to be appearing. Does somebody have had the same little inconvenient?
Murray *TMM*
19 years ago
Permalink
Huh?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by lebiram68
I have seen that some tags are little tricky; It seems that tags are not
included when they are suppose to be appearing. Does somebody have had the
same little inconvenient?
Vorge1
19 years ago
Permalink
Did this problem ever get solved? I am having exactly the same problem but my site is well over 300 pages long and I'd rather not have to manually sort each page out if I cant help it.
JenSue
19 years ago
Permalink
I'm having the same "unbalanced instance begin tag" error message generated
when I attempt to update pages after saving changes to certain templates. Help!
The only way I can fix it at this point is to:
1 - create new page from template
2 - paste in body from page that was unable to be updated with template
changes (i.e. /bad.asp)
3 - save as the page name (ie. /bad.asp)

That's seems to be very inefficient way to address the problem. Any help
availalble?
Thank you,
Jenny
Murray *ACE*
19 years ago
Permalink
Show me your template page, please.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
Post by JenSue
I'm having the same "unbalanced instance begin tag" error message generated
when I attempt to update pages after saving changes to certain templates. Help!
1 - create new page from template
2 - paste in body from page that was unable to be updated with template
changes (i.e. /bad.asp)
3 - save as the page name (ie. /bad.asp)
That's seems to be very inefficient way to address the problem. Any help
availalble?
Thank you,
Jenny
Randy Edmunds
19 years ago
Permalink
Jenny,

What version of DW are you using? Some of these cases are fixed in DW8.

FYI, one way to cause this to happen is by editing your pages in another
tool such as MS Visual Studio. It silently rearranges HTML Comments
(such as Template markers) for you! Beware.

You may need to open your pages in yet another tool (MS Notepad is safe)
to fix them.

Hope this helps,
Randy
Post by JenSue
I'm having the same "unbalanced instance begin tag" error message generated
when I attempt to update pages after saving changes to certain templates.
Loading...