4 Replies Latest reply: Jul 18, 2008 5:23 PM by Mike_Watt RSS

    Template errors when not using templates

    Mike_Watt Community Member
      So, when working on the page below, I try to add behaviors to the form, like a confirmation message upon clicking submit and some field validation... I get a pop-up telling me that what I'm trying to do would change code locked by a template or translator and that my changes will be discarded.

      Going through the code, I don't see any reference to templates anywhere in it... does anyone know what DW is talking about here? I'm at the end...


      I've tried several times to attach the code, but the site keeps kicking me back an error... I'll post the code in a TXT file here: https://www.wattproductions.com/documents/code_error.txt

      THANKS!!
        • 1. Re: Template errors when not using templates
          Newsgroup_User Community Member
          Look for such markup in the include files, too. There's none I could see in
          this parent page. Do you have a link to the actual page?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "Mike_Watt" <webforumsuser@macromedia.com> wrote in message
          news:g5407m$qtk$1@forums.macromedia.com...
          > So, when working on the page below, I try to add behaviors to the form,
          > like a
          > confirmation message upon clicking sibmit and some field validation... I
          > get a
          > pop-up telling me that what I'm trying to do would change code locked by a
          > template or translator and that my changes will be discarded.
          >
          > Going through the code, I don't see any reference to templates anywhere in
          > it... does anyone know what DW is talking about here? I'm at the end...
          >
          >
          > I've tried several times to attach the code, but the site keeps kicking me
          > back an error... I'll post the code in a TXT file here:
          > https://www.wattproductions.com/documents/code_error.txt
          >
          > THANKS!!
          >
          >

          • 2. Template errors when not using templates
            Mike_Watt Community Member
            I haven't uploaded the page yet because it's not working properly... I can upload it as is for now....

            https://wattproductions.com/referral/sign-up-to-earn-referral-commissions.php
            ----------------------------------------------------
            EDIT:

            You know, I just went to Modify --> Templates --> Export without markup

            I exported the entire site "without template markup" and it still gives me this error. How can that even be??
            • 3. Re: Template errors when not using templates
              Newsgroup_User Community Member
              Validator finds 27 errors on your page, many of which are caused by a
              mismatch between your doctype and your tag syntax (you declare this to be an
              HTML 4.01 document -

              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              " http://www.w3.org/TR/html4/loose.dtd">

              and then you use XHTML tag syntax -

              <link type="text/css" rel="stylesheet"
              href="/perl/random_content.pl?t=2&p=producer" />
              ).

              Also, you have links to stylesheets within the body - that'll never work -
              just remove them....

              <body>
              <link href="../../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet"
              type="text/css" />

              <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet"
              type="text/css" />

              You cannot have spaces in ID or NAME attribute values - <form
              action="sign-up-to-earn-referral-commissions.php" method="POST" name="Insert
              Record" id="Insert Record">

              And, you have wonky table code -

              </table>
              <td width="35"> </td>

              That <td> cannot be there.

              Other than that, I'd say DW is getting confused with your comment tags.
              Perhaps this one is the culprit -

              <!-- ###################################################################-->

              Try changing that one to something besides the use of the octothorpe ("#").

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "Mike_Watt" <webforumsuser@macromedia.com> wrote in message
              news:g5bo5l$e08$1@forums.macromedia.com...
              >I haven't uploaded the page yet because it's not working properly... I can
              >upload it as is for now....
              >
              > https://wattproductions.com/referral/sign-up-to-earn-referral-commissions.php

              • 4. Re: Template errors when not using templates
                Mike_Watt Community Member
                Murray -

                Thanks for your help so far... I appreciate it - this is driving me absolutely insane.

                I'm still encountering the same problem on multiple pages sitewide. For example, the attached code... (The live page requires auth, if you need that let me know and I'll PM or email creds to you).

                When trying to set a cookie on this page I get the same error... Can you even guess what is causing this? This page has no comments using the "#"... I'm at a total loss here... This is a HUGE problem.