Copied to clipboard

Flag this post as spam?

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


  • Jeroen Oostwouder 100 posts 296 karma points
    Mar 30, 2016 @ 09:48
    Jeroen Oostwouder
    0

    Move Bazaar-Store node to another node

    Hi,

    Is it possible to move the Store node from the Bazaar to another node?

    I want the store under my Home node, so the store is a node in my navigation, and pages can get data recursive from the home-page.

    But when I move the Store node, I get an "Object Reference Not Set" error.

    [NullReferenceException: Object reference not set to an instance of an object.]
    Umbraco.Web.PublishedContentExtensions.GetPropertyValue(IPublishedContent content, String alias, Boolean recurse, Boolean withDefaultValue, T defaultValue) +60
    Umbraco.Web.PublishedContentExtensions.GetPropertyValue(IPublishedContent content, String alias) +103
    Merchello.Bazaar.Models.ViewModels.MasterModel.get_Theme() +89
    Merchello.Bazaar.ModelExtensions.ThemeViewPath(IMasterModel model, String viewName) +57
    Merchello.Bazaar.Controllers.BazaarStoreController.Index(RenderModel model) +102
    lambda_method(Closure , ControllerBase , Object[] ) +159
    System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +59
    System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +435
    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +60
    System.Web.Mvc.Async.ActionInvocation.InvokeSynchronousActionMethod() +76
    System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +36
    System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +73
    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +136
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +49
    System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +117
    System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +323
    System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +323
    System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +323
    System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +323
    System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +44
    System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +47
    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +136
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +50
    System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +72
    System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +185
    System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +42
    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
    System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +34
    System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
    System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
    System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +39
    System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +62
    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
    System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
    System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
    System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +39
    System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +133
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
    System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
    System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
    System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9644037
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    

    Is it possible at all?

  • Mark 11 posts 82 karma points
    Apr 08, 2016 @ 07:33
    Mark
    0

    Hi, did you find the solution to this? I'm encountering the same issue.

    Thanks in advance

  • Nutty About Hosting 22 posts 75 karma points
    Apr 16, 2016 @ 08:22
    Nutty About Hosting
    1

    Hi,

    You can fix this by updating the Bazaar:XpathToStore app key in the web.config

    For example if your home page document alias was "homePage" and your Bazaar store was directly under the home page the web.config entry would look like this...

    <add key="Bazaar:XpathToStore" value="//root/homePage/BazaarStore" />
    

    Hope this helps : )

    Cheers

  • Jeroen Oostwouder 100 posts 296 karma points
    Apr 18, 2016 @ 06:52
    Jeroen Oostwouder
    0

    That's good to know!

    Thank you :)

  • Jeroen Oostwouder 100 posts 296 karma points
    Apr 19, 2016 @ 11:56
    Jeroen Oostwouder
    0

    I've moved the bazaar underneath the "Homepage" node, and changed the Web.config. I now have a "store" menu item on my site.

    So far, so good.

    But when I click on "All Tshirts", I get the bazaar page telling me there are no products found. Clicking the bazaar-home gives an YSOD.

    The given key was not present in the dictionary.
    
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    
    Source Error: 
    
    
    Line 17:         <h1>Featured Products</h1>
    Line 18:     </div>
    Line 19:     @if (Model.FeaturedProducts.Any())
    Line 20:     {
    Line 21:         <div class="row">
    
    Source File: d:\Projects\Sandbox\WebshopBazaar\WebshopBazaar\App_Plugins\Merchello.Bazaar\Themes\Sandstone-3\Views\Store.cshtml    Line: 19 
    

    Model.FeaturedProducts threw a KeyNotFoundException

    I've re-saved the store-home, hoping it would have a value.

    Also, when I open the BazaarStore document type, Umbraco gives me the following error: Request error: The URL returned a 404 (not found): /umbraco/backoffice/Merchello/EntityCollectionApi/GetByKey

    Are those two related?

  • Nutty About Hosting 22 posts 75 karma points
    Apr 19, 2016 @ 12:40
    Nutty About Hosting
    1

    I'm not sure if this is the same, but I have also had a similar issue to this - the cause in my case was the culture codes.

    If you have changed your shops culture from en-US to anything else, try changing it back again and see if it starts working again.

    When I had this issue, I updated the cultures directly in the merchello DB from en-US to our culture

    Then did the following to make sure nothing was cached...

    1. went to this URL on umbraco /Umbraco/dialogs/republish.aspx?xml=true
    2. Deleted the contents of the App_Data folder (careful about emptying this if you store anything of importance in there!)
    3. Recycled the app pool

    Cheers

  • Mark 11 posts 82 karma points
    Apr 25, 2016 @ 11:50
    Mark
    0

    Hi Jeroen,

    Same problem here too with the "All TShirts" page and the exception on the Store document type.

    I tried Nutty's suggestion but that didn't work...I hadn't changed the culture previously.

    Did you find a solution?

    Thanks

  • Jeroen Oostwouder 100 posts 296 karma points
    Apr 25, 2016 @ 12:06
    Jeroen Oostwouder
    0

    No, but when I try a own page displaying "all products" it shows no items either. So I guess there just isn't a way to show ALL products. I don't think it would ever happen, so it shouldn't be a big problem?

    Still a bit odd to include it in the bazaar if it doesn't work tho

Please Sign in or register to post replies

Write your reply to:

Draft