Copied to clipboard

Flag this post as spam?

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


  • Allan Hawkey 232 posts 303 karma points
    Mar 30, 2011 @ 11:29
    Allan Hawkey
    0

    Blog post error

    Hi

    We're using 4.5.2 with BlogForUmbraco installed - it has been working fine until yesterday.  Now, when we Save and Publish a new blog post, we get the error below, the post remains draft in the content tree, and it is not assigned to date folders.

    Plus, worse, it seems to unpublish ALL pages on the site - so the front end shows the "Looks like there's still work to do" standard Umbraco page.

    By revisiting the draft blog pst on the content tree, it is possible to Save and Publish it again, and this brings everything back to life, and publishes the post and assigns it to datefolders.  But for our clients who are posting entries in their blogs, it's a nasty error to see and takes down the whole site each time.

    Any ideas on what's gone wrong and how to fix it?

    Here's the error we're getting when we try to publish a post for the first time:

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.content.ValidateSchema(String docTypeAlias, XmlDocument xmlDoc) +51
       umbraco.content.AppendDocumentXml(Int32 id, Int32 level, Int32 parentId, XmlNode docXml, XmlDocument xmlContentCopy) +117
       umbraco.content.PublishNodeDo(Document d, XmlDocument xmlContentCopy, Boolean updateSitemapProvider) +217
       umbraco.content.UpdateDocumentCache(Document d) +395
       umbraco.content.UpdateDocumentCache(Int32 pageId) +72
       umbraco.library.UpdateDocumentCache(Int32 DocumentId) +146
       umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e) +459
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +96
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
       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) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

  • Daniel Bardi 927 posts 2562 karma points
    Mar 30, 2011 @ 12:40
    Daniel Bardi
    0

    What changed since yesterday?

    Clear out the /App_Data/TEMP/ClientDependancy folder, touch the web.config and republish entire site from root 'Content' node to recycle cache.

    post back the result.

  • Allan Hawkey 232 posts 303 karma points
    Mar 30, 2011 @ 12:51
    Allan Hawkey
    0

    Hi Daniel

    Will try this - but before I do, I know that republishing the entire site always times out - is there a way that I can extend the timeout period?

    Thanks

    Allan

  • Daniel Bardi 927 posts 2562 karma points
    Mar 30, 2011 @ 13:09
    Daniel Bardi
    0

    I think I remember seeing something in the umbracoSettings.config related to timeout...

  • Allan Hawkey 232 posts 303 karma points
    Mar 30, 2011 @ 13:16
    Allan Hawkey
    0

    Can't see anything in there, unless I'm missing something obvious??

  • Allan Hawkey 232 posts 303 karma points
    Mar 30, 2011 @ 13:23
    Allan Hawkey
    0

    OK - tried it anyway. Deleted the contents of the /App_Data/TEMP/ClientDependancy folder, opened and saved the web.config file and republish entire site from root 'Content' node (happened virtually immediately - normally, when I republish everything, I do it from the level below and it works through all the pages one by one, and then it times out).

    Tried publishing a new blog post - still getting the error.

  • Daniel Bardi 927 posts 2562 karma points
    Mar 30, 2011 @ 13:26
    Daniel Bardi
    0

    Republishing from root 'Content' node just clears cache .. that's why it was so fast.

    To tired to think right now.. I'll have to get back to this tomorrow.. hopefully you'll find a solution before then.

  • Allan Hawkey 232 posts 303 karma points
    Apr 06, 2011 @ 16:38
    Allan Hawkey
    0

    Hi Daniel

    Just wondering if you have had a chance to think some more about this one?  We're still struggling with this issue, and would really appreciate your help.

    Thanks
    Allan

  • SinkyPars 132 posts 175 karma points
    Apr 06, 2011 @ 16:59
    SinkyPars
    0

    Hi Allan,

    Can you post your site structure please? Is the blog under the Content node?

    Thanks

     

    S

  • Allan Hawkey 232 posts 303 karma points
    Apr 06, 2011 @ 17:13
    Allan Hawkey
    0

    Hi

    We have a number of blogs within this installation - we have a number of clients (all sports clubs) which share the same templates but have their own sites.  So we have:

    Content
      ClubNet
        ClubNetBlog
        Sites
          Site1
            Site1Blog
          Site2
            Site2Blog

    etc

    Does this make sense?

    Thanks
    Allan

  • SinkyPars 132 posts 175 karma points
    Apr 07, 2011 @ 14:47
    SinkyPars
    0

    Have you tried deleting the indexes? Republishing the entire site(s) too?

    Cheers

    S

  • Kevin Morris 3 posts 23 karma points
    Apr 07, 2011 @ 15:02
    Kevin Morris
    0

    Hi S,

    I'm working with Allan on this problem.  What do you mean by 'deleting the indexes' - do you mean in the database for every table?  Sorry if it's a dumb question!

    Thanks,

    Kevin

  • SinkyPars 132 posts 175 karma points
    Apr 08, 2011 @ 10:16
    SinkyPars
    0

    Try deleting eveything in here - App_Data\ExamineIndexes

    I think this stores some machine specific indexes which can sometimes get corrupted.

    Maybe someone from the umbraco team can confirm this?

    Cheers

    S

  • Kevin Morris 3 posts 23 karma points
    Apr 08, 2011 @ 10:32
    Kevin Morris
    0

    Thanks S,

    There's actually nothing in AppData\ExamineIndexes but there is in AppData\TEMP\ExamineIndexes.  Do you recommend deleting everything in there?

    Cheers,

    Kevin

  • SinkyPars 132 posts 175 karma points
    Apr 08, 2011 @ 12:01
    SinkyPars
    0

    Oops, sorry it is the AppData\TEMP\ExamineIndexe I suggest deleting everthing from.

    Cheers

    S

  • Kevin Morris 3 posts 23 karma points
    Apr 08, 2011 @ 15:13
    Kevin Morris
    0

    Thanks very much S,

    We tried that and unfortunately it didn't change anything.  We still get the same error most of the time.  It's very strange.

    I've looked at other posts which have mentioned PingServices.  Does anyone think it could be due to that.

    Also, as the error occurs at ValidateSchema it suggests that it might be an error in the database.  Is there anyway to perform an integrity check on the whole database?

    Many thanks everyone.

    Kevin

Please Sign in or register to post replies

Write your reply to:

Draft