Copied to clipboard

Flag this post as spam?

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


  • Thor Madsen-Holm 82 posts 212 karma points c-trib
    Apr 10, 2014 @ 10:28
    Thor Madsen-Holm
    0

    Can't acess published nodes.

    Hi, 

    I just ran into a problem while deploying af site that I have updated from v4.11.10 to 6.1.6. 
    I did the update locally and then deployed the database and files. 

    However when i deployed the site and logged in to umbraco to see if everything was ok I found out that every published page i tried to view in the backoffice threw a YSOD. 

    I can't seem to figure out what's causing this, so any help would be much appreciated. 
    Here is the YSOD i get: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId) +43
       Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.DetermineRouteById(UmbracoContext umbracoContext, Boolean preview, Int32 contentId) +35
       Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetRouteById(UmbracoContext umbracoContext, Boolean preview, Int32 contentId) +87
       Umbraco.Web.Routing.DefaultUrlProvider.GetUrl(UmbracoContext umbracoContext, Int32 id, Uri current, UrlProviderMode mode) +66
       Umbraco.Web.Routing.<>c__DisplayClass3.<GetUrl>b__0(IUrlProvider provider) +28
       System.Linq.WhereSelectArrayIterator`2.MoveNext() +66
       System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source, Func`2 predicate) +94
       Umbraco.Web.Routing.UrlProvider.GetUrl(Int32 id, Uri current, UrlProviderMode mode) +169
       Umbraco.Web.Routing.UrlProvider.GetUrl(Int32 id) +15
       umbraco.cms.presentation.editContent.UpdateNiceUrls() +168
       umbraco.cms.presentation.editContent.OnPreRender(EventArgs e) +20
       System.Web.UI.Control.PreRenderRecursiveInternal() +83
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

    The odd thing is that I can access unpublished pages fine, although i can't publish them. When I do i get this YSOD: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.web.Document.ToXml(XmlDocument xd, Boolean Deep) +176
       umbraco.content.PublishNodeDo(Document d, XmlDocument xmlContentCopy, Boolean updateSitemapProvider) +112
       umbraco.content.UpdateDocumentCache(Document d) +164
       Umbraco.Web.Cache.PageCacheRefresher.Refresh(IContent instance) +79
       Umbraco.Core.Sync.DefaultServerMessenger.InvokeMethodOnRefresherInstance(ICacheRefresher refresher, MessageType dispatchType, Func`2 getId, IEnumerable`1 instances) +388
       Umbraco.Core.Sync.DefaultServerMessenger.MessageSeversForManyObjects(IEnumerable`1 servers, ICacheRefresher refresher, MessageType dispatchType, Func`2 getId, IEnumerable`1 instances) +114
       Umbraco.Core.Sync.DefaultServerMessenger.PerformRefresh(IEnumerable`1 servers, ICacheRefresher refresher, Func`2 getNumericId, T[] instances) +182
       Umbraco.Web.Cache.DistributedCache.Refresh(Guid factoryGuid, Func`2 getNumericId, T[] instances) +192
       Umbraco.Web.Cache.DistributedCacheExtensions.RefreshPageCache(DistributedCache dc, IContent[] content) +202
       Umbraco.Web.Strategies.Publishing.UpdateCacheAfterPublish.UpdateSingleContentCache(IContent content) +52
       Umbraco.Web.Strategies.Publishing.UpdateCacheAfterPublish.PublishingStrategy_Published(IPublishingStrategy sender, PublishEventArgs`1 e) +112
       Umbraco.Core.Events.EventExtensions.RaiseEvent(TypedEventHandler`2 eventHandler, TArgs args, TSender sender) +16
       Umbraco.Core.Publishing.PublishingStrategy.PublishingFinalized(IContent content) +100
       Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Int32 userId, Boolean raiseEvents) +824
       umbraco.cms.businesslogic.web.Document.SaveAndPublishWithResult(User u) +351
       umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e) +75
       umbraco.controls.ContentControl.DoSaveAndPublish(Object sender, ImageClickEventArgs e) +75
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +124
       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

    Let me know if additional information is needed. 

    /Thor 

  • Thor Madsen-Holm 82 posts 212 karma points c-trib
    Apr 10, 2014 @ 11:01
    Thor Madsen-Holm
    100

    Nevermind, turned out I was missing some files. 

  • 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