Copied to clipboard

Flag this post as spam?

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


  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 12:35
    Alistair Jenkins
    0

    What files to copy from old website to clean install?

    Hi,

    I want to clone an existing Umbraco website.

    I have created a new solution in VS2017 and using Nuget installed a clean instance of Umbraco using the same version as the original and using the Umbraco installation wizard connected it to the original database. I just want to be absolutely sure I know which files/folders to copy across from the original installation and when to overwrite files in the new installation and when not to. I've had a couple of fails at this already so I just want to double-check.

    Can anyone help with advice? I'd be most grateful.

    Cheers, Alistair

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Feb 09, 2018 @ 13:40
    Dan Diplo
    0

    This is off top-of-my-head, so don't take it as gospel:

    /Views/
    /App_Plugins/
    /Media/
    

    If the original site uses NuGet for any packages then you'll need to re-install those. Likewise, if it uses standard Umbraco packages then re-install those. You may also have some other non-Umbraco DLLs in the /bin/ folder, so check for those.

    I'd also recommend using a good Diff tool, like Beyond Compare, to check for other changes. I would compare all config files (ie. web.config and /config/*) for changes. Generally I'd merge in changes from the old files into the new, as you want to keep the newest format, but with existing values (by and large).

    You will also need to add any CSS files, static images, JavaScript etc. from the original site.

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 13:46
    Alistair Jenkins
    0

    Hi Dan,

    Thanks for the reply. As it happens, just before your reply I had tried using WinMerge to compare the two installations and had copied over everything that the new installation didn't have, and then merged the original web.config with the new web.config.

    I'm regretting that already, as when I open default.aspx in my browser I get the YSOD with this error

    String "1069" is not a valid udi.
    

    Any idea what's wrong?

    Cheers, Alistair

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Feb 09, 2018 @ 13:54
    Steve Morgan
    0

    That sounds like you're nearly there. Can you get into the backend and republish all content (right click on the content label at the top of the tree).

    Clear all the examine files and umbraco.config files in the app_data and try restarting the solution. Then if it's still happening look at the error log and see if you can narrow it down to certain lines in the template causing issues (most likely around image / content pickers).

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 14:19
    Alistair Jenkins
    0

    Hi Steve, (sorry for calling you Dan)

    Just to be sure, is that all the files in the folders under AppData/TEMP/ExaminIndexes as well as AppData/TEMP/Umbraco.config?

    Thanks, Alistair

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 14:51
    Alistair Jenkins
    0

    Hi Steve,

    Here's what the YSOD reports. Source error:

     Line 56:     <header id="header">
     Line 57:   @if (CurrentPage.HasValue("aboveLogo")){
     Line 58:               <h2 class="abovelogo">@Umbraco.Field("aboveLogo", recursive: true)</h2> }
     Line 59:         <div class="logo">
     Line 60:             <div>
    

    Stack trace:

     [FormatException: String "1069" is not a valid udi.]
        Umbraco.Core.Udi.ParseInternal(String s, Boolean tryParse, Udi& udi) +720
        Umbraco.Core.Udi.Parse(String s) +16
        System.Linq.WhereSelectArrayIterator`2.MoveNext() +58
        System.Linq.Buffer`1..ctor(IEnumerable`1 source) +133
        System.Linq.Enumerable.ToArray(IEnumerable`1 source) +77    
        Umbraco.Web.PropertyEditors.ValueConverters.MediaPickerPropertyConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +128
          Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedProperty.get_Value() +58
          Umbraco.Web.Models.DynamicPublishedContent.TryGetUserProperty(GetMemberBinder binder) +105
          Umbraco.Web.Models.<>c__DisplayClass9.<TryGetMember>b__6(Func`2 m) +14
          System.Linq.WhereSelectListIterator`2.MoveNext() +99
          System.Linq.WhereEnumerableIterator`1.MoveNext() +209
          Umbraco.Web.Models.DynamicPublishedContent.TryGetMember(GetMemberBinder binder, Object& result) +251 CallSite.Target(Closure , CallSite , Object ) +159
          System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +629  ASP._Page_Views_umbLayout_cshtml.Execute() in c:\Users\Alistair.CVN\source\repos\cvnsites-dev-vs\cvnsites-dev-vs\Views\umbLayout.cshtml:58
          System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
          System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105
          System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
          System.Web.WebPages.<>c__DisplayClass3.<RenderPageCore>b__2(TextWriter writer) +232
          System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
          System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
          System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +63
          System.Web.WebPages.WebPageBase.PopContext() +237
          System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +98
          System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +235
          System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107
          Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +113
          System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +290
          System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
          System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56
          System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
          System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
          System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
          System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +52
          System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +173
          System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
          System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
          System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
          System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
          System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
          System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
          System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
          System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
          System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
          System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
          System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
          System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
          System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
          System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
          System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
          System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
          System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
          System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
          System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9748493
          System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
         System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159
    

    Is this the pertinent bit?

     Umbraco.Web.PropertyEditors.ValueConverters.MediaPickerPropertyConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +128
    

    Thing is, abovelogo is a text field.

    EDIT: ...and if I fill that text field on the Home page the error disappears, and a new 'is not a valid udi' pops up. So this is happening where I have bits of code that test to see if a field is populated and if it is then it inserts the field but if it isn't it ignores it. The code works on the original site. Why doesn't it work here, do you think?

    Cheers, Alistair

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Feb 09, 2018 @ 15:27
    Steve Morgan
    0

    What version are you on?

    Check the value between your new instance and your old one in the web.config of EnablePropertyValueConverters

    Try toggling this.

    Steve

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 15:45
    Alistair Jenkins
    0

    Hi Steve,

    Version 7.6.3

    Couldn't find that property in web.config but it was in umbracoSettings.config. When I changed it from true to false (it is true in the original), the homepage came up, but not showing the logo. However, when I tried to navigate to another page, I got the same error again.

    EDIT: it is not true in the original, don't know where I got that idea from!

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Feb 09, 2018 @ 15:48
    Steve Morgan
    0

    And you've republished all content - right?

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 15:52
    Alistair Jenkins
    0

    Just republished everything again to make sure. It doesn't help, I'm afraid.

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Feb 09, 2018 @ 16:11
    Steve Morgan
    0

    Hi,

    I'm not sure but I think this is where a fresh install is using the newer media picker and the old version used the old one - hence the error your cms data has integer IDs and it's expecting UIDs.

    You could try going through the doc types and reassigning the picker to use the old media picker. I think that would fix it but maybe someone in the community has a better solution!?

    See here: https://our.umbraco.org/forum/templates-partial-views-and-macros/86532-string-2293-is-not-a-valid-udi-from-images-in-763

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 16:33
    Alistair Jenkins
    0

    Hi,

    When you posted that I remembered that in an earlier attempt to fix this I had gone in and changed the logo media picker to the newer version, so I went back and changed that back and now I can navigate to the other pages on the site. But the logo still doesn't appear on the home page and now when I go into the back end and click on Home I get a server error saying it can't retrieve data for that node.

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Feb 09, 2018 @ 16:38
    Steve Morgan
    0

    Delete that picker from the doc type - load hte content node, publish it and then add it back.

    HTH

    Steve

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 16:45
    Alistair Jenkins
    0

    Hi Steve,

    That got it! Thank you so much for your help. Sorted just in time for me to go home for my tea. :)

    Cheers, Alistair

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Feb 09, 2018 @ 16:50
    Steve Morgan
    0

    I think you need to accept Dan's original answer to the original question but glad we got it sorted!

    Have a great weekend!

  • Alistair Jenkins 92 posts 315 karma points
    Feb 09, 2018 @ 16:55
    Alistair Jenkins
    0

    Of course. Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft