It was all of a sudden and it just stopped working. I have no clue what went wrong, what caused this to occur:
Could not 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 it didn't
Can anyone tell me the reason for this and what could be the solution. I am fairly new to Sitecore.
Updating the 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>
I may be wrong but could it be a simple spelling mistake in the handler registration in the events pipeline? I looked at the source code for SC 7.2 update 4 and there is no method called Sitecore.Publishing.HtmlCacheClearer.ClearCaches, how ever there IS a method called ClearCache.
Try to change the method name to ClearCache.
Cheers, Bo
This is a long shot, but I encountered a problem with the HtmlCacheClearer
a few months back. Turns out it has a dependency on a legacy Lucene index called __System
.
If that index get corrupted, it can cause some unexpected results. My situation wasn't exactly the same as yours but the fix simple and non-invasive. So it might be worth trying.
Just delete the __System
index from you datafolder (it doesn't contain anything that needs to be kept).
I wrote a blog post about this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With