Copied to clipboard

Flag this post as spam?

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


  • Caractacus Downes 81 posts 314 karma points
    Sep 22, 2016 @ 14:44
    Caractacus Downes
    1

    Umbraco / Merchello Upgrade

    Hi,

    I have a site currently running U7.4.3 and M2.1.0 + FastTrack. I am in the process of upgrading to U7.5.3 and M2.2.1 but would like some guidance.

    I'm familiar with the process of upgrading Umbraco - it's going to be a manual, copying files, merging config files process - but I think I'm happy with that.

    When it comes to Merchello and FastTrack what's the best approach? I've already tried the package installer to upgrade Merchello, which seemed to work. However I then started to run into problems with namespaces not being found. As I've spent the last two days working on it and not kept regular backups at each stage I can't be sure exactly when my online store stopped working, but it has.

    So I'm going back to the backup I had from two days ago and starting again. Some advice on the most reliable sequence in which to do things would be helpful.

    Do I need to upgrade FastTrack as well? The version I am currently running has quite a lot of customisation on the views - am I going to have to do that all over again if I upgrade FastTrack? Is there any benefit to doing that?

    We had a previous discussion about handling non-shippable items in a better way - I'm hoping that's part of 2.2.1. What do I need to do to make that work?

    Sorry for all the questions, but I've spent all day Googling and got almost nowhere, so this is it!

    Cheers,

    Crac

  • Caractacus Downes 81 posts 314 karma points
    Sep 23, 2016 @ 12:01
    Caractacus Downes
    1

    OK, I have some more specific information about the problem now.

    I reverted to my U7.4.3 / M2.1.0 backup. This runs reasonably happily in Debug mode in VS2015 (although it does throw up an irritating "Could not load type 'umbraco.controls.GenericProperties.GenericProperty'." error which I have another forum question open about).

    At this point my FastTrack-based online store works as expected.

    I then did a manual update of the site to U7.5.3, then ran the site in Debug to complete the update. This worked as expected, the site runs, the online store works.

    I then did a local package update to M2.2.1. At this point the main part of the site continues to run as expected, but the online store is broken. I now get the following error when loading the online store main page:

    System.InvalidOperationException: No route in the route table matches the supplied values.
    
    Line 60:         }
    Line 61: 
    Line 62:         @Html.Action("AddProductToBasketForm", "Basket", new { area = "Merchello", model = Model })
    Line 63:         <div class="divClear"></div>
    Line 64:     </div>
    
    Stack Trace: 
    
    [InvalidOperationException: No route in the route table matches the supplied values.]
       System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +651
       System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +114
       ASP._Page_Views_Shared__ProductBox_cshtml.Execute() in c:\Users\Caractacus\Documents\Visual Studio 2015\WebSites\Bfd_U743_M210\Views\Shared\_ProductBox.cshtml:62
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +253
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
       Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +239
       System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +137
       ASP._Page_Views_Store_cshtml.Execute() in c:\Users\Caractacus\Documents\Visual Studio 2015\WebSites\Bfd_U743_M210\Views\Store.cshtml:22
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +253
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
       Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +239
       System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +90
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +833
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +833
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +833
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +186
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +67
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +44
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +67
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +399
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137
    

    It seems to be only this reference that is a problem, but as far as I can see nothing has changed in the code of the pages - so has a reference been lost or is there a breaking change in Merchello that I have missed?

    I'm sure the answer is simple and obvious, but so apparently am I so I can't work it out.

    Any help appreciated.

    Cheers,

    Crac

  • Caractacus Downes 81 posts 314 karma points
    Sep 23, 2016 @ 15:58
    Caractacus Downes
    1

    OK, I've managed to work out some things - it seems to want the Basket actionName in the HtmlAction() command to be StoreBasket now, and I have also had to rename the Basket directory in Merchello/Views to StoreBasket.

    SO it seems to be mostly working now. I can't remove items from the basket at the moment, but that's probably a similar thing lurking somewhere.

    If this is a documented change then I haven't found it. I'm not sure if there was something odd in the way my site was configured, or if this is an oversight either in the documentation or the installer package, but it might help someone else.

    I'll spend more time making sure the rest of it works on Monday.

    Cheers,

    Crac

  • Caractacus Downes 81 posts 314 karma points
    Sep 26, 2016 @ 11:18
    Caractacus Downes
    101

    Got everything working now. I think almost all of it came down to the renaming of Basket => StoreBasket, including the 'remove item' issue.

    Cheers,

    Crac

Please Sign in or register to post replies

Write your reply to:

Draft