Failed to create event handler instance. Type: Sitecore.Publishing.HtmlCacheClearer

It was sudden, and he just stopped working. I don't know what went wrong that caused this:

Unable to instantiate event handler. Type: Sitecore.Publishing.HtmlCacheClearer. Method: ClearCaches (method: Sitecore.Events.Event + EventSubscribers.Add (String eventName, XmlNode configNode)).

I tried everything that would make it work, but not

  • Re-copied Sitecore files from Sitecore 7.2
  • Re-indexed my Solr
  • Created a completely new project Sitecore
  • Reissued Full Site
  • Laid his head on the table

Can someone tell me the reason for this and what could be the solution. I am new to Sitecore.

Update publish:end and publish:end:remote

  <event name="publish:end"> <handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCaches"> <sites hint="list"> <site>website</site> </sites> </handler> </event> <event name="publish:end:remote"> <handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCaches"> <sites hint="list"> <site>website</site> </sites> </handler> </event> 
+6
source share
2 answers

Maybe I'm wrong, but could it be a simple spelling mistake in registering a handler in the event pipeline? I looked at the source code for the SC 7.2 update, and there is no Sitecore.Publishing.HtmlCacheClearer.ClearCaches method, however ClearCache method is.

Try changing the method name to ClearCache.

Cheers bo

+5
source

This is a long snapshot, but after a few months I ran into the HtmlCacheClearer problem. Turns out it has a dependency on an outdated Lucene index called __System .

If this index is corrupted, it may lead to unexpected results. My situation was not exactly the same as yours, but the fix was simple and non-invasive. Therefore, it may be worth a try.

Just remove the __System index from your data folder (it does not contain anything that needs to be saved).

I wrote a post in this article .

+1
source

All Articles