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:
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.
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.
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:
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!
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?
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
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.
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
I think I remember seeing something in the umbracoSettings.config related to timeout...
Can't see anything in there, unless I'm missing something obvious??
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.
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.
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
Hi Allan,
Can you post your site structure please? Is the blog under the Content node?
Thanks
S
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
Have you tried deleting the indexes? Republishing the entire site(s) too?
Cheers
S
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
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
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
Oops, sorry it is the AppData\TEMP\ExamineIndexe I suggest deleting everthing from.
Cheers
S
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
is working on a reply...