Skip navigation
stingywithwords
Currently Being Moderated

unbalanced instancebegin error

Aug 16, 2012 1:48 PM

when updating my template, i get this error, which is causing none of my pages to be updated.

 
Replies
  • Currently Being Moderated
    Aug 16, 2012 2:29 PM   in reply to stingywithwords

    That's a drag.  No doubt you have an error in your page's code.  Can you give us a link to the page?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 7:41 AM   in reply to stingywithwords

    Your page's code is pretty whacked -

     

    <title>"AirTrack Devices, Cell Phone and Tablet Repair Center"</title>

    <meta name="robots" content="index, follow">

    <meta name="Keywords" content="airtrack devices greensboro nc, phone screen repair, smart phone service, iphone repair, triad phone, buy sell trade, greensboro phone, ipod repair, fix phones, mobile phone repair, tablet repair, cell phone parts, broken phone" />

    "><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" --><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" --><meta name="description" content="Repair Center, Cell Phones, Tablets, iPods, Replacement Phones, Software, Unlocking, Flashing, Accessories, Online Part store, Mail-in Repairs, and More!" />

    <!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>

     

    The first thing on the page is a title tag - it should be a doctype, which actually occurs further down.

     

    Can you upload the template file "index.dwt" to some location on this site and post a link?  That way we can perhaps see what the reason for this wonkiness is.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 8:15 AM   in reply to stingywithwords

    Yeah - your template code is pretty whacked too.  First MAKE A BACKUP OF THIS SITE BY COPYING THE ROOT FOLDER AND PASTING IT SOMEWHERE SAFE.

     

    Then move this -

     

    <style type="text/css">

    td img {display: block;}td img {display: block;}

    </style>

    <script type="text/JavaScript">

    <!-- 

    function MM_findObj(n, d) { //v4.01

      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

      if(!x && d.getElementById) x=d.getElementById(n); return x;

    }

     

    function MM_nbGroup(event, grpName) { //v6.0

      var i,img,nbArr,args=MM_nbGroup.arguments;

      if (event == "init" && args.length > 2) {

        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {

          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;

          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();

          nbArr[nbArr.length] = img;

          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {

            if (!img.MM_up) img.MM_up = img.src;

            img.src = img.MM_dn = args[i+1];

            nbArr[nbArr.length] = img;

        } }

      } else if (event == "over") {

        document.MM_nbOver = nbArr = new Array();

        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {

          if (!img.MM_up) img.MM_up = img.src;

          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);

          nbArr[nbArr.length] = img;

        }

      } else if (event == "out" ) {

        for (i=0; i < document.MM_nbOver.length; i++) {

          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }

      } else if (event == "down") {

        nbArr = document[grpName];

        if (nbArr)

          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }

        document[grpName] = nbArr = new Array();

        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {

          if (!img.MM_up) img.MM_up = img.src;

          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;

          nbArr[nbArr.length] = img;

      } }

    }

    //-->

    </script>

     

    from its current location to a new location just below this -

     

    <title>temp1</title>

    <!-- TemplateEndEditable -->

    MOVE IT HERE!

     

    so that it replaces the "MOVE IT HERE!" text.

     

    Then save the template, allow it to update all local pages.  Then paste the top 20 lines of code from one of your newly updated child pages in a reply here.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 9:08 AM   in reply to stingywithwords

    I followed my instructions and didn't get that error.  Let's see your new template code, please.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 9:38 AM   in reply to stingywithwords

    Looks correct to me.  You receive this error message when you save the modified template using FILE | Save or when you try to update the child pages?  What is the exact wording of the error?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 10:02 AM   in reply to stingywithwords

    Open index.html and apply the new template to it.  Does that now eliminate the error?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 10:46 AM   in reply to stingywithwords

    Open the page, and use MODIFY | Templates > Apply Template to Page....

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 10:51 AM   in reply to stingywithwords

    OK - so the solution is to spawn a new page from the new template, and copy/paste content from each child page before saving the new child with the same name as the old child.  That'll squish that error message good!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 11:43 AM   in reply to stingywithwords

    You would only need to copy content from editable regions (both in the head and the body of the page).  It's a bit smaller job.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points