Frut02 Posted February 15, 2017 Posted February 15, 2017 (edited) Hi all, I inherited this school website and unfortunately the person updating it seems to have broken it - i have limited html knowledge and wondered if anyone could cast an eye over the code and tell me why on earth it's stopped working. Whenever i try to save and update the other files attached to this template. it throws up an error about a unbalanced end of instance tag. I may be blind but i just cant see it. The Greneway Middle School - ../images/template/school_logo_small.png ../images/template/greneway_title.pngGarden Walk, Royston, Herts. SG8 7JF Telephone: 01763 243650 (School Receptionists, Mrs N Bedford/Mrs N Johnson) Email: [email protected] ../images/template/royston_academy_trust.png Home About Us Calendar Curriculum Pupils Parents Staff Governors Gallery Community Statutory Information ../images/homepage/ParentPay.PNG ../images/template/twitter.png Follow us @GrenewaySchool @GrenewayPE @GrenewayITC @GrenewayARTS @GrenewayEnglish @GrenewayJourney @GrenewayYear5 @ScienceGreneway @dandtgreneway @Year6teachers @FriendsofGreneway ../images/template/give_as_you_live_logo.png page_content Any help would be appriciated Many ThanksNick Rutter Edited February 15, 2017 by vikpaw CODE tags screwed it up
bwestlake Posted February 15, 2017 Posted February 15, 2017 Open the webpage on chrome and right click and go to inspect it will tell you where some errors are and work from there
vikpaw Posted February 15, 2017 Posted February 15, 2017 (edited) Ignore what I wrote earlier. I'll start again! Apologies @Frut02 - was trying to help with post formatting and did more harm than good! It depends on what you expect the layout to be at the end. It's got a nested table, so interpolating what the intention was, which seems to create links down the left hand side, try this: [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana]The Greneway Middle School -[/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana]</pre><table width="100%" border="0" cellspacing="0" cellpadding="0"> [/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana]../images/template/school_logo_small.png[/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana]../images/template/greneway_title.png[/font][/color] [color=#333333][font=Verdana]Garden Walk, Royston, Herts. SG8 7JF [/font][/color] [color=#333333][font=Verdana]Telephone: 01763 243650 (School Receptionists, Mrs N Bedford/Mrs N Johnson) Email: [email protected] [/font][/color] [color=#333333][font=Verdana]../images/template/royston_academy_trust.png[/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana] [/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana] [/font][/color] [color=#333333][font=Verdana] [/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana] Home [/font][/color] [color=#333333][font=Verdana] About Us [/font][/color] [color=#333333][font=Verdana] Calendar [/font][/color] [color=#333333][font=Verdana] Curriculum [/font][/color] [color=#333333][font=Verdana] Pupils [/font][/color] [color=#333333][font=Verdana] Parents [/font][/color] [color=#333333][font=Verdana] Staff [/font][/color] [color=#333333][font=Verdana] Governors [/font][/color] [color=#333333][font=Verdana] Gallery [/font][/color] [color=#333333][font=Verdana] Community [/font][/color] [color=#333333][font=Verdana] Statutory Information [/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana] ../images/homepage/ParentPay.PNG[/font][/color] [color=#333333][font=Verdana] ../images/template/twitter.png[/font][/color] [color=#333333][font=Verdana] Follow us [/font][/color] [color=#333333][font=Verdana] @GrenewaySchool[/font][/color] [color=#333333][font=Verdana] @GrenewayPE [/font][/color] [color=#333333][font=Verdana] @GrenewayITC[/font][/color] [color=#333333][font=Verdana] @GrenewayARTS[/font][/color] [color=#333333][font=Verdana] @GrenewayEnglish[/font][/color] [color=#333333][font=Verdana] @GrenewayJourney[/font][/color] [color=#333333][font=Verdana] @GrenewayYear5[/font][/color] [color=#333333][font=Verdana] @ScienceGreneway[/font][/color] [color=#333333][font=Verdana] @dandtgreneway[/font][/color] [color=#333333][font=Verdana] @Year6teachers[/font][/color] [color=#333333][font=Verdana] @FriendsofGreneway[/font][/color] [color=#333333][font=Verdana] ../images/template/give_as_you_live_logo.png[/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana]page_content[/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana][/font][/color] [color=#333333][font=Verdana]</table>[/font][/color]<br>[color=#333333][font=Verdana][/font][/color]<br>[color=#333333][font=Verdana][/font][/color]<br>[color=#333333][font=Verdana][/font][/colo Edited February 15, 2017 by vikpaw
SimonHooker Posted February 21, 2017 Posted February 21, 2017 (edited) I believe this is because you have but no matching tag. I did a quick search and found some random source code containing the tags, i.e. Development and Production - PAJ Systemteknik , and at the top of that you can see prior to the To that end the following might work - though I have to admit to being unfamiliar with this language and as such any other parameters InstanceBegin may require The Greneway Middle School - </pre><table width="100%" border="0" cellspacing="0" cellpadding="0"> Garden Walk, Royston, Herts. SG8 7JF Telephone: 01763 243650 (School Receptionists, Mrs N Bedford/Mrs N Johnson) Email: [email protected] Home About Us Calendar Curriculum Pupils Parents Staff Governors Gallery Community Statutory Information Follow us @GrenewaySchool @GrenewayPE @GrenewayITC @GrenewayARTS @GrenewayEnglish @GrenewayJourney @GrenewayYear5 @ScienceGreneway @dandtgreneway @Year6teachers @FriendsofGreneway page_content </table><br><b Edited February 21, 2017 by SimonHooker
vikpaw Posted February 21, 2017 Posted February 21, 2017 To be honest I ignored those instance tags because they are in html comments. Unless it's being parsed by another system that requires them. It's been arranged to allow a user to edit some sections. I found a number of broken tags around the nested Table, so figured the problem was likely there.
SimonHooker Posted February 21, 2017 Posted February 21, 2017 To be honest I ignored those instance tags because they are in html comments. Unless it's being parsed by another system that requires them. It's been arranged to allow a user to edit some sections. I found a number of broken tags around the nested Table, so figured the problem was likely there. The problem with ignoring them is that the original post explicitly stated it throws up an error about a unbalanced end of instance tag My guess is this is used in some sort of templating system that relies on the comments being balanced. Most browsers are able to handle all kinds of broken HTML, they don't normally throw such a cog about unbalanced tags. Frameworks / templating systems tend to though. I use Ember a lot and if the tags are mismatched there the Handlebars parser throws all kinds of errors making it clear that you haven't matched your closing tags up correctly! 1
vikpaw Posted February 22, 2017 Posted February 22, 2017 Fair enough. So I guess a combination of our changes will do the trick. Ideally, @Frut02 you need a backup copy to compare to, or another template file which you can use to find the syntax for the 'begin instance' tag, then the other changes in html i made will hopefully at least make it work. One thing to bear in mind, the forum processing stupidly parses the '..' in the links so instead of them being relative to the files location, it's actually parsing them as the edugeek.net webpage root. In testing, you'll want to do a find and replace on 'http://www.edugeek.net/forums' and replace it with '..' else your images and links won't work. This was the issue i was battling with before to make the code appear correctly. I'm surprised that a templating system like this which is marking areas as 'begin editable' and 'end editable' allows changing the pure html. You'd think there is a user interface through which the editable sections are exposed to protect the integrity of the document. Either way, a backup or old copy is going to be really helpful. Or even just a sample from whichever program is providing this framework.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now