Copied to clipboard

Flag this post as spam?

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


  • Daniel Kolev 4 posts 24 karma points
    Apr 14, 2011 @ 13:14
    Daniel Kolev
    0

    Very strange page activity

    Hello,

    I have created a lot of pages and several time I have experienced a very strange (I think we can call it) bug.
    Just after creating the page, I am publish it. Some times, when I open the umbraco BE I see the page as published, but there is not link. When I`am debuging the link constructor, I receive this:

    class umbraco.library, internal static string niceUrlJuno
    XmlElement node = UmbracoContext.Current.GetXml().GetElementById(nodeId.ToString()) - > node is null
    Exceltion: Couldn't find any page with the nodeId = 1354. This is most likely caused by the page isn't published!
    Parameter name: nodeId

    On this link {http://screencast.com/t/jplZTn7W} you can see that the page  is published, but there is no link.

     

    I am using Umbraco source code buil. 4.7.0.378

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 14, 2011 @ 14:33
    Tom Fulton
    0

    Hi, are you using any custom event handlers etc or is this happening on just a regular Umbraco install?

    I ask because I received the same error/behavior yesterday, when writing some code to create some documents under a document using an AfterPublish event handler.  The fix was to move from AfterPublish to umbraco.content.AfterUpdateDocumentCache, apparently the document isn't yet fully published during AfterPublish.

    -Tom

  • Daniel Kolev 4 posts 24 karma points
    Apr 14, 2011 @ 16:01
    Daniel Kolev
    0

    No, I haven`t any aditional events or etc.

    I have a template, document type and a few controls in the template. I am using a downloaded source code version. The site is running throught Windows 7 + IIS 7 & Visaul Studio 2010.

    The problem occurs sometimes and I did not found a specific reason.

  • Daniel Kolev 4 posts 24 karma points
    Apr 14, 2011 @ 16:04
    Daniel Kolev
    0

    Well, I found this - http://our.umbraco.org/forum/developers/api-questions/12710-Modified-Document-Not-Showing-non-published-Status-in-Tree

    Umbraco has a major problem with the cache. For example if you copy/move a page - the cache data did not refresh itself.

Please Sign in or register to post replies

Write your reply to:

Draft