Announcement

Collapse
No announcement yet.

Coding Errors - Losing Hair!

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

    Coding Errors - Losing Hair!

    Hi,

    I've been spending most of today correcting errors caused by an export followed by an import and have one final error that I just can't seem to solve...

    It appears that my product template has a couple of errors - namely...

    The selector 'AttributeList' is recursively used. (69 times)
    The selector 'ComponentList' is recursively used. (69 times)

    I have checked everywhere I can think of and simply can't find any double entries in the code.

    I have pasted the template code below and wonder if anyone could suggest any ideas?

    Thanks for any help.



    David

    Code:
     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
          <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />"> 
             <input type="hidden" name="SID" id="SID" value="<Actinic:Variable Name="SectionID"/>" />
             <input type="hidden" name="PAGE" value="PRODUCT" />           
             <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
             <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
                <!-- Hidden field when in trial mode -->
                <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
             </actinic:block>
    </actinic:block>
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
     <tr>
            <td style="line-height:0; font-size:1px;" align="center">
                <img src="header-product.gif" alt="Enjoy Music Product Header"/>
                
            </td>
        </tr>
    </table>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" style="background: url('bg-product.gif') top center repeat-y;">
        <tr>
            <td align="left">
    
        <table width="410" cellspacing="18" cellpadding="0" border="0" >
        </tr>
       <tr>
          <td align="center" valign="top">
               <actinic:variable name="ProductImageLayout" />
          </td>
       
          <td align="left" valign="top">
             <a name="<Actinic:Variable Name="EncodedProductAnchor"/>"><b><actinic:variable formatting="style|actregular" encoding="actinic" name="ProductName" /></b></a>
             <br/>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductReferenceVisible%22%20%2f%3e" >
                Ref: <actinic:variable name="ProductReference" />
             </actinic:block>
             
             <br />
             <div style="margin-top:10px; border-top: 0px solid #999; border-bottom: 0px solid #999; height:60px; overflow:auto;"><actinic:variable name="ProductDescription" /></div>
            
     <actinic:variable name="ExtendedInformationLinks" /> 
                    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22FileURLNotEmpty%22%20%2f%3e">
                <br />
                <a href="<Actinic:Variable Name="ProductLinkInfo"/>">
                   <Actinic:Variable Name="ProductLinkText"/>
                </a>
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCustomerMessageUsed%22%20%2f%3e">
                <br />
                <Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable name="ProductID" />" COMPONENTID=-1><Actinic:Variable Name="RetailCustomerMessage"/></Actinic:PRICE_EXPLANATION>
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceIsEnabled%22%20%2f%3e">
                    <b>
                    <Actinic:PRICES PROD_REF="<actinic:variable name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
                <actinic:variable name="PriceListRetail" />
                </Actinic:PRICES>
                </b>
             </actinic:block>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20False">
                 <Actinic:NOTINB2B><br /><strong><actinic:variable name="ProductPriceNotEnabledMessage" /></strong></Actinic:NOTINB2B>
             </actinic:block>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountDescriptionIsShownForProducts%22%20%2f%3e">      
                <br /><actinic:variable name="DiscountList" value="Standard Discount List" />
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOtherInfoPromptShown%22%20%2f%3e">
                <br />
                <span class="actrequired"><Actinic:Variable Name="OtherInfoPrompt"/></span><br />
                <input type="text" name="O_<Actinic:Variable Name="ProductID"/>" size="40" maxlength="1000" value="" />
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsDatePromptShown%22%20%2f%3e">
                <br />
                <span class="actrequired"><actinic:variable name="DatePrompt"/></span><br />
                <actinic:variable name="DayList" /><actinic:variable name="MonthList" /><actinic:variable name="YearList" />
             </actinic:block>
             
             <actinic:variable name="AttributeList" />
             <actinic:variable name="ComponentList" />
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
                <br />
                <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span>
                &nbsp;
                <input type="text" name="Q_<Actinic:Variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" />
             </actinic:block>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
                <input type="hidden" name="Q_<actinic:variable name="ProductID"/>"  value="<actinic:variable name="DefaultQuantity"/>" />
             </actinic:block>
    
             <br /><actinic:variable name="CartError" />
             <div style="float:left;">
             <br/><a href="javascript:history.go(-1)"><img src="btn-back.gif" alt="back button" border="0"/></a>
             </div>
                <div style="float:right;">
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
                <br /><actinic:variable name="AddToCartButton" />
             </actinic:block>
    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e">
                <br /><strong><span class="actrequired"><br /><Actinic:Variable Name="OutOfStock"/></span></strong>
             </actinic:block>
                
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e">
                <br /><strong><span class="actrequired"><Actinic:Variable Name="CatalogSuspended"/></span></strong>
             </actinic:block>
             </div><br style="clear:both;"/>
            
            <div style="border: 0px solid #FF0;">
                    
           <actinic:variable name="ProductAlsoBoughtList" />
             
           <actinic:variable name="ProductRelatedProductsList" />
            </div>
            
            </td>
            </tr>
                </table>
    
    
          </td>
       </tr>
    </table>
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
     <tr>
            <td align="center">
                <img src="footer-product.gif" alt="Enjoy Music Product Footer"/>
            </td>
        </tr>
    </table>   
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
          </form>
    </actinic:block>

    #2
    Hi David,

    Firstly, could you edit your post to encapsulate your HTML in the following
    [ HTML ] and [ /HTML ] - without the spaces. THis gives

    HTML Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
    <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />">
    <input type="hidden" name="SID" id="SID" value="<Actinic:Variable Name="SectionID"/>" />
    <input type="hidden" name="PAGE" value="PRODUCT" />
    <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
    <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
    <!-- Hidden field when in trial mode -->
    <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
    </actinic:block>
    </actinic:block>
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td style="line-height:0; font-size:1px;" align="center">
    <img src="header-product.gif" alt="Enjoy Music Product Header"/>
    
    </td>
    </tr>
    </table>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" style="background: url('bg-product.gif') top center repeat-y;">
    <tr>
    <td align="left">
    
    <table width="410" cellspacing="18" cellpadding="0" border="0" >
    </tr>
    <tr>
    <td align="center" valign="top">
    <actinic:variable name="ProductImageLayout" />
    </td>
    
    <td align="left" valign="top">
    <a name="<Actinic:Variable Name="EncodedProductAnchor"/>"><b><actinic:variable formatting="style|actregular" encoding="actinic" name="ProductName" /></b></a>
    <br/>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductReferenceVisible%22%20%2f%3e" >
    Ref: <actinic:variable name="ProductReference" />
    </actinic:block>
    
    <br />
    <div style="margin-top:10px; border-top: 0px solid #999; border-bottom: 0px solid #999; height:60px; overflow:auto;"><actinic:variable name="ProductDescription" /></div>
    
    <actinic:variable name="ExtendedInformationLinks" />
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22FileURLNotEmpty%22%20%2f%3e">
    <br />
    <a href="<Actinic:Variable Name="ProductLinkInfo"/>">
    <Actinic:Variable Name="ProductLinkText"/>
    </a>
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCustomerMessageUsed%22%20%2f%3e">
    <br />
    <Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable name="ProductID" />" COMPONENTID=-1><Actinic:Variable Name="RetailCustomerMessage"/></Actinic:PRICE_EXPLANATION>
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceIsEnabled%22%20%2f%3e">
    <b>
    <Actinic:PRICES PROD_REF="<actinic:variable name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
    <actinic:variable name="PriceListRetail" />
    </Actinic:PRICES>
    </b>
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20False">
    <Actinic:NOTINB2B><br /><strong><actinic:variable name="ProductPriceNotEnabledMessage" /></strong></Actinic:NOTINB2B>
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountDescriptionIsShownForProducts%22%20%2f%3e">
    <br /><actinic:variable name="DiscountList" value="Standard Discount List" />
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOtherInfoPromptShown%22%20%2f%3e">
    <br />
    <span class="actrequired"><Actinic:Variable Name="OtherInfoPrompt"/></span><br />
    <input type="text" name="O_<Actinic:Variable Name="ProductID"/>" size="40" maxlength="1000" value="" />
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsDatePromptShown%22%20%2f%3e">
    <br />
    <span class="actrequired"><actinic:variable name="DatePrompt"/></span><br />
    <actinic:variable name="DayList" /><actinic:variable name="MonthList" /><actinic:variable name="YearList" />
    </actinic:block>
    
    <actinic:variable name="AttributeList" />
    <actinic:variable name="ComponentList" />
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
    <br />
    <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span>
    &nbsp;
    <input type="text" name="Q_<Actinic:Variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" />
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
    <input type="hidden" name="Q_<actinic:variable name="ProductID"/>" value="<actinic:variable name="DefaultQuantity"/>" />
    </actinic:block>
    
    <br /><actinic:variable name="CartError" />
    <div style="float:left;">
    <br/><a href="javascript:history.go(-1)"><img src="btn-back.gif" alt="back button" border="0"/></a>
    </div>
    <div style="float:right;">
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
    <br /><actinic:variable name="AddToCartButton" />
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e">
    <br /><strong><span class="actrequired"><br /><Actinic:Variable Name="OutOfStock"/></span></strong>
    </actinic:block>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e">
    <br /><strong><span class="actrequired"><Actinic:Variable Name="CatalogSuspended"/></span></strong>
    </actinic:block>
    </div><br style="clear:both;"/>
    
    <div style="border: 0px solid #FF0;">
    
    <actinic:variable name="ProductAlsoBoughtList" />
    
    <actinic:variable name="ProductRelatedProductsList" />
    </div>
    
    </td>
    </tr>
    </table>
    
    
    </td>
    </tr>
    </table>
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td align="center">
    <img src="footer-product.gif" alt="Enjoy Music Product Footer"/>
    </td>
    </tr>
    </table>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
    </form>
    </actinic:block>
    It makes it much easier to read.
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      also a quick search on the forum gave this answer
      Fergus Weir - teclan ltd
      Ecommerce Digital Marketing

      SellerDeck Responsive Web Design

      SellerDeck Hosting
      SellerDeck Digital Marketing

      Comment


        #4
        Hi,

        Thanks for the link. I've had a look but still can't identify the problem.

        I can't find any circular references in there and have the same problem no matter which product template I seem to use.

        Any other suggestions?

        Thanks


        David

        Comment


          #5
          As that post shows, resetting the layout to factory setting and starting again might help?

          Be sure and back up though before hand though.
          Fergus Weir - teclan ltd
          Ecommerce Digital Marketing

          SellerDeck Responsive Web Design

          SellerDeck Hosting
          SellerDeck Digital Marketing

          Comment


            #6
            Look in the the AttributeList and ComponentList layouts. The problem could be in there or inside one of the sub-layouts.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Originally posted by NormanRouxel
              Look in the the AttributeList and ComponentList layouts. The problem could be in there or inside one of the sub-layouts.
              That's great - I think I've now fixed the problem.

              Does anyone know how I force all of the html pages to inherit some new settings.

              What I mean is that I have changed the Extended Info Page Link to 1 from 0 but the actual html pages haven't accepted the change. I've checked the database and the correct settings are in place.

              Thanks


              David

              Comment


                #8
                David,

                Try compacting the Database and see if that forces the changes to reflect. The only other way to do it would be to export the catalog ( File | Export | Catalog ) and make the changes in the resulting Hierarchical file then reimport the file into Actinic.

                Kind regards,
                Bruce King
                SellerDeck

                Comment


                  #9
                  Originally posted by Bruce
                  David,

                  Try compacting the Database and see if that forces the changes to reflect. The only other way to do it would be to export the catalog ( File | Export | Catalog ) and make the changes in the resulting Hierarchical file then reimport the file into Actinic.

                  Kind regards,
                  Hi Bruce,

                  Thanks for your reply. I've tried compacting the database but to no avail.

                  I've also tried exporting and then re-importing but that caused all sorts of other problems so I had to reload from a snapshot (maybe because I've got custom fields?).

                  Either way I've checked the database and the instruction is definitely there for the popup pages and text link to be showing but it's not.

                  I've left it in the hands of the Actinic developers and the support team don't know what the problem is!

                  Thanks


                  David

                  Comment


                    #10
                    Originally posted by DavidAM
                    I have changed the Extended Info Page Link to 1 from 0
                    David,

                    The bGeneratePopup field in the access database should be
                    -1
                    not
                    1

                    i.e. set it to zero gives no popup page. Set it to -1 gives a popup page.
                    teclan has a utility which allows you to set the popup page checkbox, text field, image link etc selectively throughout your catalog.
                    Email me for more details.
                    Fergus Weir - teclan ltd
                    Ecommerce Digital Marketing

                    SellerDeck Responsive Web Design

                    SellerDeck Hosting
                    SellerDeck Digital Marketing

                    Comment

                    Working...
                    X