Running 4.5.2 on .Net 3.5, I'm
getting the error below only when using the scheduled publishing
(Publish At on the properties tab):
Error publishing node:System.NullReferenceException:Object reference notset to an instance of an object. at umbraco.presentation.UmbracoContext.get_Current() at umbraco.library.GetXmlNodeById(String id) at umbraco.presentation.nodeFactory.Node..ctor(Int32NodeId) at InfoCaster.Umbraco._301UrlTracker.Base301URLTracker.Document_BeforePublish(Document doc,PublishEventArgs e) at umbraco.cms.businesslogic.web.Document.PublishEventHandler.Invoke(Document sender,PublishEventArgs e) at umbraco.cms.businesslogic.web.Document.FireBeforePublish(PublishEventArgs e) at umbraco.cms.businesslogic.web.Document.PublishWithResult(User u) at umbraco.cms.businesslogic.web.Document.Publish(User u) at umbraco.presentation.publishingService.CheckPublishing(Object sender)
It looks like it's trying to access the node in the xml before it's
been published? Not sure why it would only do this when publishing on a
schedule? The page still seems to publish at the right time. I don't know if this error indicates other issues.
In some additional testing I've also noticted that the Remove At feature is not working. I was expecting that the page would un-publish at the Remove At date/time,but nothing happens.
I am also trying to get scheduled publishing to work and am getting a very similar error in the audit trail.
Error publishing node: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.presentation.UmbracoContext.get_Current() at umbraco.library.GetXmlNodeById(String id) at UmbracoExamine.ContentExtensions.ToXDocument(Content node, Boolean cacheOnly) at UmbracoExamine.UmbracoEventManager.content_AfterUpdateDocumentCache(Document sender, DocumentCacheEventArgs e) at umbraco.content.DocumentCacheEventHandler.Invoke(Document sender, DocumentCacheEventArgs e) at umbraco.content.UpdateDocumentCache(Document d) at umbraco.library.UpdateDocumentCache(Int32 DocumentId) at umbraco.presentation.publishingService.CheckPublishing(Object sender)
Can anyone help with why this may not be working? (running v
4.6.1 .net 4)
I don't think it's something to worry about if the pages do publish on the sceduled time - I have just checked the audit trail on some of the pages on a minor site I'm running, which was set to publish some nodes earlier today.
The nodes have been published fine but contains the same error message in the audit trail. Probably because it's something is trying to access the node before it's been published.
In short, if the nodes are published at the specified date and time I don't think it's something to worry about :-) - If it does not publish, then it's of course something that should be investigated further.
I had the same problem in our development environment. The problem was actually that everyone of our developers had his own iis instance and we were all connecting to the same database.
So once I unpublished a document and added a schedule (publish at date) to it. The node got published in the cms, but didn't show up on my screen. The reason for this is simple. When umbraco starts the publishingTimer is set to load very 60 seconds. So the first instance of an iis that triggers his publishing timer published the document in the cms, and updated only his local cache. This is why it didn't show up on my screen.
Error in Audit Trail on scheduled publishing
Running 4.5.2 on .Net 3.5, I'm getting the error below only when using the scheduled publishing (Publish At on the properties tab):
I am also trying to get scheduled publishing to work and am getting a very similar error in the audit trail.
Error publishing node: System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.presentation.UmbracoContext.get_Current()
at umbraco.library.GetXmlNodeById(String id)
at UmbracoExamine.ContentExtensions.ToXDocument(Content node, Boolean cacheOnly)
at UmbracoExamine.UmbracoEventManager.content_AfterUpdateDocumentCache(Document sender, DocumentCacheEventArgs e)
at umbraco.content.DocumentCacheEventHandler.Invoke(Document sender, DocumentCacheEventArgs e)
at umbraco.content.UpdateDocumentCache(Document d)
at umbraco.library.UpdateDocumentCache(Int32 DocumentId)
at umbraco.presentation.publishingService.CheckPublishing(Object sender)
Can anyone help with why this may not be working? (running v 4.6.1 .net 4)
Hi Tara
I don't think it's something to worry about if the pages do publish on the sceduled time - I have just checked the audit trail on some of the pages on a minor site I'm running, which was set to publish some nodes earlier today.
The nodes have been published fine but contains the same error message in the audit trail. Probably because it's something is trying to access the node before it's been published.
In short, if the nodes are published at the specified date and time I don't think it's something to worry about :-) - If it does not publish, then it's of course something that should be investigated further.
/jan
The nodes are not publishing at the 'publish at' time.
Within Umbraco they are saying that they are published, but on the site it delivers a 404 page not found.
Any ideas?
I had the same problem in our development environment. The problem was actually that everyone of our developers had his own iis instance and we were all connecting to the same database.
So once I unpublished a document and added a schedule (publish at date) to it. The node got published in the cms, but didn't show up on my screen. The reason for this is simple. When umbraco starts the publishingTimer is set to load very 60 seconds. So the first instance of an iis that triggers his publishing timer published the document in the cms, and updated only his local cache. This is why it didn't show up on my screen.
Took me some time to figure that one out.
is working on a reply...