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.
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.
------------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 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.
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
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.
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.
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:
In my host file i added: 127.0.0.1 avenue-clothing.com
Under Content/Shop/Culture and Hostnames i added avenue-clothing.com in the Domain field
Under Commerce/uCommerce/Stores/avenue-clothing.com i added avenue-clothing.com in the Host name field
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/Catalog.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:
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
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
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
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.
In order to use the ?umbDebugShowTrace=true parameter you also need to change the application setting umbracoDebugMode to true in web.config.
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.
Money suggestion Martin.
It's always something little, huh?
Thanks!
Kory
You're welcome Kory :)
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.
is working on a reply...