I'm getting an exception after every publish from CM, but the publishing is happening correctly.
I'm using Sitecore 8.1, Solr Search, and a separate publishing instance.
There's a couple clues here that I think I can attempt to provide some troubleshooting steps in order to answer your question. Now, before getting too far along, because the error is occurring in the publish:end
handler all active publishing tasks for the items have already finished which is why it appears the publish was successful.
publish:end
event handler, which indicates that the issue is within that handler.publish:end
EventsIn a default configuration for Sitecore 8.1 Update 3, we have the following event handlers for publish:end
:
<event name="publish:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site>website</site>
</sites>
</handler>
<handler type="Sitecore.Publishing.RenderingParametersCacheClearer, Sitecore.Kernel" method="ClearCache" />
<handler type="Sitecore.ContentSearch.Events.PublishingEventHandler, Sitecore.ContentSearch" method="OnFullPublishEndHandler" patch:source="Sitecore.ContentSearch.config" />
<handler type="Sitecore.ContentSearch.Events.PublishingEventHandler, Sitecore.ContentSearch" method="OnPublishHandler" patch:source="Sitecore.ContentSearch.config" />
<!-- ACTIVE TEST CACHE CLEARER This event handler clears data from the ActiveTest cache -->
<handler type="Sitecore.ContentTesting.Events.ActiveTestCacheClearer, Sitecore.ContentTesting" method="Process" patch:source="Sitecore.ContentTesting.config" />
<handler type="Sitecore.Social.Client.MessagePosting.Handlers.PublishEndHandler, Sitecore.Social.Client" method="ClearDbMesageCache" patch:source="Sitecore.Social.config" />
</event>
By looking at a default configuration, there are a few places where an error might occur. Again, this is the default configuration which means the error may be in any kind of custom code that you've created, if you have a custom publish:end
handler. Going on the assumption you don't.
publish:end
specifically, but I have seen weirdness out of ContentTesting. There is a ContentTesting event handler in the stock configuration. If you wanted to rule out, you could disable this handler in the Sitecore.ContentTesting.config
file.publish:end
event that clears the Glass Cache. If, for some reason, this cache was unavailable or missing, theoretically it might cause an error.To troubleshoot this further, you'll want to provide the following information:
publish:end
events from /sitecore/admin/showconfig.aspx
Hope this helps!
publish:end
event. Are there any custom subscribers?