Announcement

Collapse
No announcement yet.

Loading a Skin error (beta 2) + Fatal Error after deleting a Page

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

    Loading a Skin error (beta 2) + Fatal Error after deleting a Page

    I found a bunch of problems with Beta2

    I wanted to make sure I can reload my custom skin before I install Beta3 and got this error message when trying to apply the skin.

    Failed to apply skin: Unable to find template named 'featured-basket.mvc'
    I tracked this down to the control.xml file in the .pkg. It seems that when I created a new page called FEATURED I had enabled ALL of the Items then disabled them one at a time to see exactly what items were actually required for the screen to display. Even though the "basket" item is now unchecked, the item is still beeing reported in the .xml file.

    The control.xml file contains these entrys.
    <Page>
    <Code>FEATURED</Code>
    <Name>Store Front Featured</Name>
    <Source>FEATURED-page.htm</Source>
    <Settings>
    <![CDATA[:AFFILIATE:TEMPLATE_FILENAME=featured-affiliate.mvc,
    :BASKET:TEMPLATE_FILENAME=featured-basket.mvc,
    :CUSTOMER:TEMPLATE_FILENAME=featured-customer.mvc,
    :HDFT:FOOTER:TEMPLATE_FILENAME=featured-footer.mvc,
    :HDFT:HEAD:TEMPLATE_FILENAME=featured-head.mvc,
    :HDFT:HEADER:TEMPLATE_FILENAME=featured-header.mvc,
    :ORDER_CONTENTS:TEMPLATE_FILENAME=featured-order_contents.mvc,
    :ORDER_CUSTOMER:TEMPLATE_FILENAME=featured-order_customer.mvc,
    :PRODUCT_ATTRIBUTES:TEMPLATE_FILENAME=featured-product_attributes.mvc,
    :PRODUCT_DISPLAY:FIELD_CODE=1,
    :PRODUCT_DISPLAY:FIELD_DESC=1,
    :PRODUCT_DISPLAY:FIELD_NAME=1,
    :PRODUCT_DISPLAY:FIELD_PRICE=1,
    :PRODUCT_DISPLAY:FIELD_WEIGHT=1,
    :PRODUCT_DISPLAY:IMAGE=F,
    :PRODUCT_DISPLAY:INVMSG=L,
    :PRODUCT_DISPLAY:TEMPLATE_FILENAME=featured-product_display.mvc,
    :PRODUCT_LIST:BUTTON_ADD=1,
    :PRODUCT_LIST:BUTTON_BUY=1,
    :PRODUCT_LIST:COL_NUM=2,
    :PRODUCT_LIST:COL_SEL=D,
    :PRODUCT_LIST:FIELD_CODE=1,
    :PRODUCT_LIST:FIELD_DESC=1,
    :PRODUCT_LIST:FIELD_NAME=1,
    :PRODUCT_LIST:FIELD_PRICE=1,
    :PRODUCT_LIST:FORMAT=X,
    :PRODUCT_LIST:IMAGE=T,
    :PRODUCT_LIST:INVMSG=L,
    :PRODUCT_LIST:MODE=ctgy,
    :PRODUCT_LIST:PAGINATE=1,
    :PRODUCT_LIST:PER_PAGE=10,
    :PRODUCT_LIST:TEMPLATE_FILENAME=featured-product_list.mvc,
    :PRODUCT_LIST:WIDTH=90%25]]>
    </Settings>
    </Page>
    Here are the items actually assigned.


    Notice these entries are NOT assigned
    :BASKET:TEMPLATE_FILENAME=featured-basket.mvc,
    :CUSTOMER:TEMPLATE_FILENAME=featured-customer.mvc,
    :ORDER_CONTENTS:TEMPLATE_FILENAME=featured-order_contents.mvc,
    :ORDER_CUSTOMER:TEMPLATE_FILENAME=featured-order_customer.mvc

    I then attempted to delete the page FEATURED then re-add it using the same code and got this error message.

    Runtime error in /mm5/5.00/features/tui/tui_db.mvc @ [00000038:0000004c]: Line 1479: MvQUERY: mysql_execute: Duplicate entry 'featured.mvc' for key 2.
    Error Code: MER-TUI-DTB-00055
    Description: mysql_execute: Duplicate entry 'featured.mvc' for key 2
    Packing the store did not fix the problem.
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    #2
    Re: Loading a Skin error (beta 2) + Fatal Error after deleting a Page

    > I then attempted to delete the page FEATURED then re-add it using the same code and got this error message.

    I got that same error and reported in in the previous beta. Looks like it didn't get fixed.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment


      #3
      Re: Loading a Skin error (beta 2) + Fatal Error after deleting a Page

      On your first issue, the framework actually works as designed. If you removed an item or page that it required, it will fail.
      We might have to adjust the frameworks feature so it doesnt fail for certain cases(displays warning messages perhaps?)

      Your second issue is a mySQL error that's on my list to fix :)

      Thanks.
      Alex Kruglyak
      Software Engineer
      Miva Small Business Solutions
      http://www.mivamerchant.com

      Comment


        #4
        Re: Loading a Skin error (beta 2) + Fatal Error after deleting a Page

        Here is the thing. You can duplicate this problem.

        Create a new page TEST1. Enable only these items
        inventory
        category
        body
        colors
        product_list
        fonts
        colors
        buttons
        product_attributes
        Save the skin; apply the skin. All should work.

        On the page TEST1 assign the basket item, then un-assign the basket item

        Now save the skin and re-apply the new saved skin. it will fail

        Failed to apply skin: Unable to find template named test1-basket.mvc'

        If the basket item is not used in the page why would this cause the entire skin to load. I forsee a lot of panicky calls to tech support when someone tries out a new skin then can't revert to their last saved skin.
        Ray Yates
        "If I have seen further, it is by standing on the shoulders of giants."
        --- Sir Isaac Newton

        Comment

        Working...
        X