No emails on updates and email send status does not work

Hello,

my xwiki does not send emails on updates though if you share a page via email - it works fine. I see the following error:

Oct 12 18:06:22 tomesto-wiki tomcat9[248489]: 2021-10-12 18:06:22,301 [Mail Prepare Thread] ERROR lteringLiveMimeMessageIterator - Failed to generate an email for the user [xwiki:XWiki.amers].
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.EmailTemplateRenderer.executeTemplateInContext(EmailTemplateRenderer.java:155)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.EmailTemplateRenderer.executeTemplate(EmailTemplateRenderer.java:113)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.AbstractNotificationEmailRenderer.executeTemplate(AbstractNotificationEmailRenderer.java:66)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.DefaultNotificationEmailRenderer.renderHTML(DefaultNotificationEmailRenderer.java:69)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.handleEvents(AbstractMimeMessageIterator.java:270)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.updateFactoryParameters(AbstractMimeMessageIterator.java:237)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.next(AbstractMimeMessageIterator.java:365)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.next(AbstractMimeMessageIterator.java:68)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]:         at org.xwiki.notifications.notifiers.internal.email.EmailTemplateRenderer.executeTemplateInContext(EmailTemplateRenderer.java:153)
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]: Caused by: org.xwiki.rendering.RenderingException: Failed to evaluate template with id [/templates/notification/email/default.html.vm]
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]: Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with namespace [/templates/notification/email/default.html.vm]
Oct 12 18:06:22 tomesto-wiki tomcat9[248489]: Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getURL' in  class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException at /templates/notification/email/default.html.vm[line 100, column 21]
Oct 12 19:00:27 tomesto-wiki tomcat9[248489]: 2021-10-12 19:00:27,888 [Mail Prepare Thread] ERROR o.a.v.d.null                   - Exception in macro #link called at /templates/notification/email/default.html.vm[line 100, column 1]
Oct 12 19:00:27 tomesto-wiki tomcat9[248489]: 2021-10-12 19:00:27,888 [Mail Prepare Thread] ERROR o.a.v.d.null                   - Exception in macro #displayNotificationPage called at /templates/notification/email/default.html.vm[line 132, column 1]
Oct 12 19:00:27 tomesto-wiki tomcat9[248489]: 2021-10-12 19:00:27,888 [Mail Prepare Thread] ERROR o.a.v.d.null                   - Exception in macro #displayNotificationRightCell called at /templates/notification/email/default.html.vm[line 27, column 71]
Oct 12 19:00:27 tomesto-wiki tomcat9[248489]: 2021-10-12 19:00:27,888 [Mail Prepare Thread] ERROR o.a.v.d.null                   - Exception in macro #displayNotificationSkeleton called at /templates/notification/email/default.html.vm[line 27, column 1]

Also when I try to see Email sending status in the Wiki administration page, the table with status does not load, I only get a progress bar.

Hi, maybe the first thing to check is that you have a clean wiki and that you haven’t modified any template files or default pages.

So I did. No changes found at all.