Copied to clipboard

Flag this post as spam?

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


  • Brent 3 posts 23 karma points
    Apr 23, 2012 @ 19:00
    Brent
    0

    Website Goes to Setup Umbraco page every few months.

    Our website goes to a setup umbraco page every few months. The only way to resolve the problem is to republish the entire website, but it still comes back after a few more months. Is there any way to fix this issue?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 23, 2012 @ 20:12
    Tom Fulton
    0

    Hi Brent,

    When you say setup, is it the one that says "Looks like there's still work to do" or something along those lines?  What version of Umbraco are you using?  There was a bug (I think pre 4.7.0?) that could cause this but it should be fixed in a later version.  If upgrading is not an option Darren has a workaround on his blog.

    HTH,
    Tom 

  • Brent 3 posts 23 karma points
    Apr 23, 2012 @ 22:24
    Brent
    0

    umbraco v 4.5.2 (Assembly version: 1.0.3891.20719)

     

    Is the version. Thank you so much Tom.

  • Paul Blair 466 posts 731 karma points
    Apr 23, 2012 @ 22:43
    Paul Blair
    0

    There is a bug with 4.5 that results in pages being unpublished if the database is offline.

    See http://our.umbraco.org/forum/ourumb-dev-forum/bugs/26527-Sick-and-tired-of-pages-being-unpublished?p=1 for more details.

    This canbe resoved by changing your /config/splashes/nonodes.aspx page to be:

    <%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="noNodes.aspx.cs"Inherits="umbraco.presentation.config.splashes.noNodes" %>
    <%@ImportNamespace="umbraco" %>
    <%@ImportNamespace="System.Xml" %>
    <%@ImportNamespace="umbraco.cms.businesslogic.web" %>
    <%@ImportNamespace="umbraco.IO" %>

    <scriptrunat="server">
       
    protectedvoidPage_Load(object sender,EventArgs e)
       
    {
           
    Server.ScriptTimeout=100000;
           
    var cacheFile =IOHelper.MapPath("/App_Data/umbraco.config");

           
    var r =XmlReader.Create(cacheFile,newXmlReaderSettings(){DtdProcessing=DtdProcessing.Ignore});
           
    var d =newXmlDocument();
            d
    .Load(r);

           
    var n = d.SelectSingleNode("//root");
           
    if(n.ChildNodes.Count==0)
           
    {
               
    Document.RePublishAll();
                library
    .RefreshContent();
           
    }
           
    Response.Redirect("/");

       
    }

    </script>
  • Brent 3 posts 23 karma points
    Apr 23, 2012 @ 22:47
    Brent
    0

    Thanks Paul,

     

    We will investigate both of these fixes. I really appreciate everyone's assistance.

Please Sign in or register to post replies

Write your reply to:

Draft