Announcement

Collapse
No announcement yet.

Variable 'ECDayno' is not defined

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Variable 'ECDayno' is not defined

    I have imporetd a 10.02 snapshot into 10.03 and the error Variable 'ECDayno' is not defined is reported. The variable appears in Javascript header functions.

    The variable exists in a generic 10.03 site but I cannot find it or the other ECDayno variables to be able to export it for import into my site. Importing another site, the variable got placed during import (no error) though cannot be found in the library
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Works fine on my 10.0.3 LBIA. If I put

    <actinic:variable name="ECDayno" />

    into a layout I see LBIA displayed.

    If in Design Mode you start typing, the variable is offered up as soon as "ecd" is entered.

    And it's in ActinicCatalog.mdb, table Variable, with entry nID 1755.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      When you say "imported a 10.02 snapshot into 10.03", could you mean the other way round? I.e. importing a 10.0.3 Snapshot into 10.0.2.

      If so that might throw the error as this variable was only introduced in 10.0.3.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        The only place this variable is used are these 2 lines in Standard Javascript Header Functions.
        Code:
           <script language="javascript" type="text/javascript" src="actiniccore.js<actinic:block if="%3cactinic%3avariable%20name%3d%22ECDayno%22%20%2f%3e%20%21%3d%20%22%22" >?DAYNO=<actinic:variable name="ECDayno" /></actinic:block>"></script>
           <script language="javascript" type="text/javascript" src="actinicextras.js<actinic:block if="%3cactinic%3avariable%20name%3d%22ECDayno%22%20%2f%3e%20%21%3d%20%22%22" >?DAYNO=<actinic:variable name="ECDayno" /></actinic:block>"></script>
        It looks like this is diagnostic code that's somehow crept in to the production release. Deleting the ECDayno stuff probably won't hurt. E.g.
        Code:
           <script language="javascript" type="text/javascript" src="actiniccore.js"></script>
           <script language="javascript" type="text/javascript" src="actinicextras.js"></script>
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          I had this issue numerous times now and deleting the ECDayno as above causes no problems.

          Comment


            #6
            Thank you Norman and Duncan very much.
            It is definitely 02 into 03 except that way back down the line, the customer's original near generic site was imported into my 02 prior to implementing the new design. I subsequently learned that he had 03 (it was just on the time of 03 release.) ECDayno is definitely absent and <actinic:variable name="ECDayno" /> does not display in the site in question. Removing the reference to ECDayno in the javascript header functions cured the issue. Will the issue reoccur when going to further versions - 04 for example?
            Jonathan Chappell
            Website Designer
            SellerDeck Website Designer
            Actinic to SellerDeck upgrades
            Graphicz Limited - www.graphicz.co.uk

            Comment


              #7
              I'm inclined to agree with Norman that it was left over from testing and I think it was added in v10.0.2 (at least) during upgrading.

              Comment


                #8
                Can the variables be retro-fitted?
                They do not seem to be in the library?
                Jonathan Chappell
                Website Designer
                SellerDeck Website Designer
                Actinic to SellerDeck upgrades
                Graphicz Limited - www.graphicz.co.uk

                Comment


                  #9
                  I think exposing the variables to the library is probably set in the code for Catalog.exe.
                  There are a lot of variables used in Actinic that cannot be used in the Design, and also a number I expect that can be used in the Design but are not in the library but only used in testing etc.

                  Comment


                    #10
                    Can the variables be retro-fitted?
                    Can't see why not.

                    It's present in the sample ActinicCatalog.mdb that's in the Original folder within the Program Files / Actinic v10.

                    Look at it in ActinicCatalog.mdb / Variable table in a working site and replicate that in a site where it's missing.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      I wonder what the js did with the ECDayno whan passed as a parameter?
                      Presumably the code for it is removed hence the 'not defined' error received.

                      I presume the ECDayno was a developement daily build number.

                      Comment


                        #12
                        When 10.0.3 came out I saw this variable being used as a search string parameter when loading actiniccore.js and actinicextras.js. At that time I (pedantically) looked at all the JS to see if it did anything with it and found nothing. So leaving it out won't hurt.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          Leaving it out has worked for me. Thanks again both. Very much appreciated.
                          Jonathan Chappell
                          Website Designer
                          SellerDeck Website Designer
                          Actinic to SellerDeck upgrades
                          Graphicz Limited - www.graphicz.co.uk

                          Comment


                            #14
                            Still there in 10.0.4
                            Elysium:Online - Official Accredited SellerDeck Partner
                            SellerDeck Design, Build, Hosting & Promotion
                            Based in rural Northants

                            Comment


                              #15
                              04's in beta. They still have time to remove it if they wish.
                              Jonathan Chappell
                              Website Designer
                              SellerDeck Website Designer
                              Actinic to SellerDeck upgrades
                              Graphicz Limited - www.graphicz.co.uk

                              Comment

                              Working...
                              X