Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Kory 14 posts 34 karma points
    Mar 22, 2013 @ 03:56
    Kory
    0

    Error loading MacroEngine script (file: uCommerce/LeftNavigation.cshtml). Included solution update.

    Hi,

    So, I installed Umbraco, without a starter kit, and then installed uCommerce on my local machine, not my server.  It worked, and one important thing I noticed is installing it this way, the template under Content>Shop was RazonStoreFrontPage not empty as is what when I did the install on my server with a starter kit installed.

    This makes me wonder if you can't install uCommerce on an Umbraco instance with a Startkit, such as Business, already installed.

    My New Problems:

    1.  In the left column I get the error:

    Error loading MacroEngine script (file: uCommerce/LeftNavigation.cshtml)

    2.  ***SOLVED*** The images don't show.  I created a test product using existing media, but didn't show.  All other fields do.  I'll keep digging on this one.  ***SOLUTION***Apparently the example images don't show. For my test product I uploaded an image and it showed.

    Clues?

    Thanks.

    Kory
    www.theFrameRoom.com

     

    ------------Begin Original Post--------------------

    System Info:

    Umbraco v6.0.2
    uCommerce 3.0.5.13045
    uCommerce Demo Store - Razor 1.0.1.13032

    We had an installed Umbraco Business Site website installed, then install uComerce into it.  We have 2 top level content nodes named Business Site and Shop.  They are in the same place on the Content tree.  I've included a screenshot below, Ex. A.

    The cart pages render in their standard template, but we get the following errors when accessing the page http://www.theframeroom.com/shop.aspx

    Error loading MacroEngine script (file: uCommerce/LeftNavigation.cshtml)
    Error loading MacroEngine script (file: uCommerce/Catalog.cshtml)
    Error loading MacroEngine script (file: uCommerce/MiniBasket.cshtml)

    The hostheader is set for theframeroom.com for the Shop node.  No hostname is set for Business Site node as we are accessing the cart directly at http://www.theframeroom.com/shop.aspx

    Our goal is to have the whole site look like the Business Site, feel free to view/make suggestions, but first we want to see how the cart works as we'll be customizing it for our purposes.

    Does anyone have insight into this problem?

    Thanks!

    Kory

    Ex. A:

     

  • Martin 181 posts 740 karma points
    Mar 24, 2013 @ 11:42
    Martin
    0

    Hi Kory,

    Can you try to activate debug mode in web.config? Then you can visit http://www.theframeroom.com/shop.aspx?umbDebugShowTrace=true

    Then you should be able see what went wrong.

    Regards Martin

  • Kory 14 posts 34 karma points
    Mar 24, 2013 @ 20:18
    Kory
    0

    Thanks Martin.  I changed the debug mode to true on web.config on my local machine, but nothing seems to be happening on the page.

    Am I missing something here?

    Thanks again.

    Kory

  • Martin 181 posts 740 karma points
    Mar 24, 2013 @ 21:10
    Martin
    0

    To see the trace/debug information for the page you have to add ?umbDebugShowTrace=true after the page. so if its shop.aspx you want to debug then it should be shop.aspx?umbDebugShowTrace=true

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 25, 2013 @ 21:50
    Søren Spelling Lund
    0

    Take a look at the the App_Data/Logs folder under your Umbraco site. uCommerce will log errors messages here, which will provide you with insight on what's going on.

    Also the debug trick outlined by Martin will do the same.

    Hope this helps.

  • Jørn Cornelius Olsen 2 posts 22 karma points
    Mar 26, 2013 @ 10:37
    Jørn Cornelius Olsen
    0

    In order to use the ?umbDebugShowTrace=true parameter you also need to change the application setting umbracoDebugMode to true in web.config.

  • Martin 181 posts 740 karma points
    Mar 26, 2013 @ 18:59
    Martin
    0

    Hi again Kori,

     

    I just installed uCommerce Demo Store and my leftnavigation is failing as well. Though I think I have a solution. The following code has been taken from LeftNavigation.cshtml (only the Razor helper). I have marked the issue with bold.

    @helper RenderNavigation(ICollection<Category> categories)

        {

        if (categories.Any())

        {

            <ul class="nav nav-list">

                @foreach (var category in categories)

                {

                    var currentCategory = SiteContext.Current.CatalogContext.CurrentCategory;

                    var css = "";

                    if (currentCategory != null && currentCategory.CategoryId == category.CategoryId)

                    {

                        css = " class=\"on\"";

                    }

                    <[email protected](css)>

                        <a href="@CatalogLibrary.GetNiceUrlForCategory(category)">@category.DisplayName()</a>

                        @RenderNavigation(category.Categories)

                    </li>

                }

            </ul>

        }

    }

    When I make a space between <li and @Html.Raw(css) then the error dissapears.

  • Kory 14 posts 34 karma points
    Mar 27, 2013 @ 02:27
    Kory
    0

    Money suggestion Martin.

    It's always something little, huh?

    Thanks!

    Kory

  • Martin 181 posts 740 karma points
    Mar 27, 2013 @ 11:50
    Martin
    0

    You're welcome Kory :)

  • Guy Pucill 23 posts 73 karma points
    Oct 09, 2013 @ 19:14
    Guy Pucill
    0

    I thought i would give Umbraco 6.1.6 and uCommerce 4.0.2.13277 a test this evening on my local machine. Everything installed nicely, but i had the exact same issue as you, with the "Error loading MacroEngine script.." error on the avenue-clothing.com demo site.

    I did the following 3 things to fix the problem:
    1. In my host file i added: 127.0.0.1       avenue-clothing.com
    2. Under Content/Shop/Culture and Hostnames i added avenue-clothing.com in the Domain field
    3. Under Commerce/uCommerce/Stores/avenue-clothing.com i added avenue-clothing.com in the Host name field
Please Sign in or register to post replies

Write your reply to:

Draft