Copied to clipboard

Flag this post as spam?

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


  • PierreD Savard 183 posts 290 karma points
    Sep 17, 2015 @ 15:35
    PierreD Savard
    0

    Upgrade to 1.12 fail - Need help!

    Hi, after upgrading to Merchello and Bazaar 1.12 I start receiving this error when entering the store (I paste just the last part of the stack):

    [ArgumentNullException: Value cannot be null. Parameter name: xpath] Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetSingleByXPath(UmbracoContext umbracoContext, Boolean preview, String xpath, XPathVariable[] vars) +109 Umbraco.Web.PublishedCache.ContextualPublishedCache1.GetSingleByXPath(Boolean preview, String xpath, XPathVariable[] vars) +77 Umbraco.Web.PublishedCache.ContextualPublishedCache.GetSingleByXPath(String xpath, XPathVariable[] vars) +75 Umbraco.Web.PublishedContentQuery.TypedDocumentByXPath(String xpath, XPathVariable[] vars, ContextualPublishedContentCache cache) +52 Umbraco.Web.PublishedContentQuery.TypedContentSingleAtXPath(String xpath, XPathVariable[] vars) +51 Umbraco.Web.UmbracoHelper.TypedContentSingleAtXPath(String xpath, XPathVariable[] vars) +62 Merchello.Bazaar.BazaarContentHelper.GetStoreRoot() +202 System.Lazy1.CreateValue() +411 System.Lazy1.LazyInitValue() +152 System.Lazy1.getValue() +75 Merchello.Bazaar.Models.ViewModels.MasterModel.getTheme() +81 Merchello.Bazaar.ModelExtensions.ThemeViewPath(IMasterModel model, String viewName) +68 Merchello.Bazaar.Controllers.BazaarStoreController.Index(RenderModel model) +107 lambda_method(Closure , ControllerBase , Object[] ) +159 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +19 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +209 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27

    In the BackOffice, I got many label like [merchelloCollections_allProduct] but I merge the lang file...

    I do a manual install like this:

    1. Ovewrite the dll of merchello and Bazaar in the bin folder
    2. Merge the us language file to umbraco\config\lang
    3. Change the web.config line for the Merchello core from 1.11.0 to 1.12.0 (Merchello.Core.Configuration.Outline.MerchelloSection, Merchello.Core, Version=1.12.0.0, Culture=neutral, PublicKeyToken=null)

    DO I need to clear some cache ?! I am missing someting?

  • PierreD Savard 183 posts 290 karma points
    Sep 17, 2015 @ 15:57
    PierreD Savard
    0

    Ok I solve 99% the language part. Error in my merge. The only label that do not work is the [merchelloSales_paid] in the sales -> Paiement status column.

    I can work in merchello backend witout problem now. But I can acces my online store. Always got "value cannot be null"..

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 17, 2015 @ 17:48
    Rusty Swayne
    0

    There is a new app_setting

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

    I think that should do it.

  • PierreD Savard 183 posts 290 karma points
    Sep 17, 2015 @ 18:08
    PierreD Savard
    0

    Thank for reply.

    I add your

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

    The error is gone, but I start receiving a lot a strange error like

    CS1061: 'Merchello.Bazaar.Models.ViewModels.StoreModel' does not contain a definition for 'ProductGroups' and no extension method 'ProductGroups' accepting a first argument of type 'Merchello.Bazaar.Models.ViewModels.StoreModel' could be found (are you missing a using directive or an assembly reference?)

    For me, the store is located at www.mysite.com/store. so i change the path to

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

    And now I got this 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.getTheme() +103 Merchello.Bazaar.ModelExtensions.ThemeViewPath(IMasterModel model, String viewName) +68 Merchello.Bazaar.Controllers.BazaarStoreController.Index(RenderModel model) +107 lambdamethod(Closure , ControllerBase , Object[] ) +159

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 17, 2015 @ 18:41
    Rusty Swayne
    0

    @PierreD - you'll need to checkout the new views in the hotfix. What has happened is some of the properties that were on the store model have been removed. Instead it's now using the BazaarContentHelper which has static methods that provide those bits.

    There were a number of reasons for this change, some having to do with virtual content but mainly as a result of feedback from a lot of people who were having trouble getting the themes working with their master view ...

    Look at the Master.chtml, the Nav.cshtml partial and the InvoiceSummary.cshtml partial for the majority of the changes.

  • PierreD Savard 183 posts 290 karma points
    Sep 17, 2015 @ 18:52
    PierreD Savard
    0

    Ho! I see. But what if I just not use my custom Theme and take the one ship with the version (Sandstone-3) then republish entire site and flush cache. I got the same error. Do I need to set something else?

    Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 17, 2015 @ 18:53
    Rusty Swayne
    0

    Rebuild the Merchello Examine indexes (especially the Product Index). There was a lot of changes with the IProductContent stuff ...

  • PierreD Savard 183 posts 290 karma points
    Sep 17, 2015 @ 19:02
    PierreD Savard
    0

    My dev site is very small. I reindex all index related to Merchello. Same theme error with SandStone-3 selected:

    [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.getTheme() +103 Merchello.Bazaar.ModelExtensions.ThemeViewPath(IMasterModel model, String viewName) +68 Merchello.Bazaar.Controllers.BazaarStoreController.Index(RenderModel model) +107 lambdamethod(Closure , ControllerBase , Object[] ) +159

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 17, 2015 @ 19:04
    Rusty Swayne
    0

    Are you trying to get a property recursively? The VirtualContent does not support that ...

  • PierreD Savard 183 posts 290 karma points
    Sep 17, 2015 @ 19:12
    PierreD Savard
    0

    Nope, I use the Bazaar shop without modification. I was using a custom theme that I remove to use only the SendStone-3 provided with the upgrade.

    I do a rollback to the 1.11 version and all is working good now.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 17, 2015 @ 20:30
    Rusty Swayne
    0

    In your database do you have the merchDetachedContentType and ProductVariantDetachedContent tables?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies