Forum Moderators: open
"There is an error at line 3, column 70 (absolute position 143)...: Nested editable regions"
When I opened one file that uses this template, on line 3 code view, it shows
<!-- #BeginEditable "doctitle" --> <!-- #BeginEditable "doctitle" --> <!-- #BeginEditable "doctitle" -->
<TITLE></TITLE>
<!-- #EndEditable --><!-- #EndEditable --><!-- #EndEditable -->
I have no idea why Dreamweaver not letting me to update these files. There are about 1000 files in my site that use this template. I am afraid to do anything to mess them up. Any ideas that I can fix this problem easier? Now I am afraid to create new templates because of this kind of problem.
I read other postings and they mentioned something about site cache. I don't know what this is and I found that our site didn't set up any site cache.
Any ideas would really help. Thanks.
First thing - take a copy of your template file - duplicate it in the site files window.
Next - have a plan B....
If all else fails in what follows, delete (outside of Dreamweaver) the broken template file and rename (outside of Dreamweaver) the backup as the original name, then re-enter Dreamweaver and re-create the site cache and you're back where you were.
The solution - Plan A - as far as I can see is to remove the spurious <!-- #BeginEditable "doctitle" --> (two of them) and the spurious <!-- #EndEditable --> (two of them).
Dreamweaver has told you that the editable regions were nested, and they are - there shouldn't be a <Begin till the previous <Begin has <End.ed...
Delete the duplicates in the CODE window, and the template should then apply when you command it (or at least tell you the next error to fix!).
I can't see how it got in this mess - normally this sort of thing is impossible to do. One possibility is that you worked in the code window (where anything can be done). Another is that you wanted to cut and paste in the design window, but Dreamweaver grabbed hold of too much, and you pasted tags inside other tags. Perhaps then you noticed a triple <TITLE> field and manually deleted the nested <TITLE> from inside the nested <Begin> and <End> - that would explain it - a copy and two pastes of too much text.
Anyway, good luck.
And if you edit a template, always check that the template looks OK - before now I've cut and paste not just MY text, but some of these Dreamweaver comments too, and it's vital you never tamper with those except via the menus.
You'll be fine!
DerekH