Copied to clipboard

Flag this post as spam?

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


  • Berto 105 posts 177 karma points
    Aug 17, 2010 @ 12:44
    Berto
    0

    Fix Bug Regarding Change Set 75277 (umbraco v 4.5.1)

    This changeset fix the bug of xml cache constantly writen to disk

    "Fixes 28485, umbraco.config constantly being recreated after publish"

    So I downloaded the change set, build it, replace the assembly (umbraco.dll) and now, no xml is written when i republish the site. The file app_data/umbraco.config simply doesn't exits anymore.

    In logs i have this:

    Xml wasn't saved: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)

    Now, big question: Is the mistake mine, on my attempt to patch the bug, or is it something else?

    Umbraco V4.5.1

    Windows server 2008

    IIS 7

    SQL Server 2005

    Thx

    Berto

  • Berto 105 posts 177 karma points
    Aug 17, 2010 @ 16:49
    Berto
    0

    Ok, so i downloaded the source code of the release build 4.5.1, done the change to method PersistXmlToFile (that are only 3 lines) that can be found here

    http://umbraco.codeplex.com/SourceControl/changeset/changes/75277

    So, the umbraco.config file isn't always been written, but now is i do a republish site, the umbraco.config is delete and never recreated until i publish a node.

    Here is log of the exception:

    Xml wasn't saved: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)

    I've got a website almost going to production, and this is a bug that is hard to live with, because it's not me who will be managing the site, and if for some reason someone re-publish the site, some areas will stop working (I'm using base for ajax calls, and methods need the umbraco.config for retrienving the content).

    I'm in a bit tight spot here, and for what i'm seeing i'm not the only one, who will the slayer of the dragon and saves the day?

    Berto

Please Sign in or register to post replies

Write your reply to:

Draft