Copied to clipboard

Flag this post as spam?

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


  • Sandro 45 posts 118 karma points c-trib
    Feb 14, 2013 @ 09:51
    Sandro
    0

    v6 upgrade issue: Problem with XML after publish

    Hi

    I have an Umbraco Project based on v4.11.4 with legacy schema. I did upgrade to v6 yesterday evening. This worked like a charm.

    But this morning I found out, that when I publish a page, the XSLT macro has a problem. In my case, the macro for the main navigation on the website stopped working (Error parsing XSLT file: \xslt\navi.xslt). I compared the XML content for the node I published in v6, with the XML content from the same node in my v4 backup database. This is what WinMerge (left: v6, right: v4) shows me:

    The problem is, as you can see, the data nodes. They have no alias attribute! Interestingly, there is a new attribute on the node called  isDoc . This is an attribute for the "new" XML schema, but I have instructed Umbraco to use the legacy schema.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 14, 2013 @ 13:03
    Jeroen Breuer
    1

    This could be a bug. Maybe try to republish first? http://our.umbraco.org/wiki/reference/api-cheatsheet/publishing-and-republishing

    Otherwise you could report it at http://issues.umbraco.org/dashboard#newissue=yes

    Jeroen

  • Sandro 45 posts 118 karma points c-trib
    Feb 14, 2013 @ 14:41
    Sandro
    0

    Now it works again, after a/umbraco/dialogs/republish.aspx?xml=truerepublish.
    (The republish through the backend [right click on "Content" > "Republish entire site"] didn't work.)

    But everytime I want to publish a page in the backend, the same error strikes back. It also shows a YSOD to the user who wants to publish the page:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Web.Models.XmlPublishedContentProperty..ctor(XmlNode propertyXmlData) +230
       Umbraco.Web.Models.XmlPublishedContent.Initialize() +2106
       Umbraco.Web.DefaultPublishedContentStore.ConvertToDocument(XmlNode xmlNode) +297
       Umbraco.Web.DefaultPublishedContentStore.GetDocumentById(UmbracoContext umbracoContext, Int32 nodeId) +89
       Umbraco.Web.Routing.NiceUrlProvider.GetNiceUrl(Int32 nodeId, Uri current, Boolean absolute) +195
       umbraco.cms.presentation.editContent.UpdateNiceUrls() +251
       System.Web.UI.Control.PreRenderRecursiveInternal() +112
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4296
    
  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Feb 22, 2013 @ 10:21
    Markus Johansson
    0

    I have the same problem as well. Did you solve this Sandro? Or do you have to publish using "republish.aspx?xml=true"? Have anyone reported this as a bug?

  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Feb 22, 2013 @ 10:28
    Markus Johansson
    0

    I guess that it's the Examine indexer that don't know how to index the legacy schema?

  • Sandro 45 posts 118 karma points c-trib
    Feb 22, 2013 @ 14:37
    Sandro
    0

    I don't know the source of the problem. Like you, I also have the standard Examine config. Only that "Save & Publish" generates a bad XML as you can see in my first post. The problem is not yet solved.

    The issue URL: http://issues.umbraco.org/issue/U4-1721

    Edit: Sebastiaan has fixed it http://umbraco.codeplex.com/SourceControl/changeset/48554a2480f7#src/Umbraco.Core/Models/PropertyExtensions.cs.

Please Sign in or register to post replies

Write your reply to:

Draft