When I check to see if my newsletter has sent, it shows as sent. However, I am subscribed to it via two email addresses and I have not received the last two mailings. I am trying to confirm with some other known subscribers whether or not they received the email. However, something seems to be broken.
Ok. I have now confirmed with multiple people that the newsletters are not being sent. However, they show as “sent” in the micro dashboard…
Any thoughts @manton?
This was an error in Sumo Theme specifically. The fix has been pushed out.
Ah! Right on, I just noticed the update in the plugins. So, that should fix it?
Yes. I reverted to the full Micro.blog defaults for newsletters.
The fix should work for anyone who installed Sumo as a plugin. For anyone reading this who uses it as the default Micro.blog theme (not as a plugin), the fix will be available soon.
I’ve updated Micro.blog’s default theme with the latest Sumo changes now.
@Mtt, is this something that Micro.blog should have better detected and shown an error about?
@manton - I believe it did actually show a message for the affected users, but the only symptom was newsletters not being created so many missed or disregarded it.
It was caused because I didn’t realize that Hugo wasn’t used to build the newsletters. I’d added a Hugo partial that caused things to breakdown. @sod was the first to bring it to my attention.
For what it’s worth, @Mtt and @manton I never received an error. The back end always showed that my newsletters had sent. The only reason I knew is because I wasn’t receiving my own newsletter. LOL
Is there any way to resend them at this point?
@danielmrose There’s not a button to resend them, but let me know if you want the latest newsletter sent and I should be able to manually send it to followers again.
That would be amazing!
Hey @manton and @Mtt just checked my log and it’s filled with the newsletter template errors. It did not send again.
Just realized I never updated to 1.2.2
@manton any chance you can do a manual resend on my latest newsletter?
Newsletters still broken @manton @Mtt
Here’s the error from the log:
Newsletter: Error running template, Error parsing template: template: template:58: function “partial” not defined
The theme no longer includes that template. By chance did you add one with your custom theme?
This is what is in the newsletter HTML box:
a { color: #1565C0; } a:hover { text-decoration: none; } .microblog_permalink { color: #1565C0; font-size: 0.9em; text-decoration: none; } .email-profile-photo { border-radius: 80px; vertical-align: middle; max-width: 80px; } .microblog_footer { border-top: 1px solid #1565C0; padding-top: 5px; margin-top: 5px; } img { border-radius: 5px; width: 100%; height: auto; max-width: 1000px; } .intro { border-bottom: 1px solid #1565C0; padding-bottom: 20px; } .post { margin-top: 10px; margin-bottom: 10px; }{{ .Site.Title }}
{{ if gt (len .Intro) 0 }}
<div class="intro">
{{ .Intro }}
</div>
{{ end }}
{{ range .Pages }}
<div class="post">
<a href="{{ .Permalink }}" class="microblog_permalink">{{ partial "dateformat/short" . }} ↓</a>
{{ if .Title }}
<h3>{{ .Title }}</h3>
{{ end }}
{{ .Content }}
{{ if gt (len .Params.audio) 0 }}
<a href="{ .Permalink }">Audio</a>
{{ end }}
{{ if gt (len .Params.video) 0 }}
<a href="{ .Permalink }">Video</a>
{{ end }}
</div>
{{ end }}
<div class="microblog_footer">
<a href="{{ .Footer.UnsubscribeURL }}">{{ T "Unsubscribe" }}</a> <span class="microblog_divider">|</span>
{{ if eq (len .Pages) 1 }}
{{ with index .Pages 0 }}
<a href="{{ .Permalink }}">{{ T "View in browser" }}</a> <span class="microblog_divider">|</span>
{{ end }}
{{ end }}
<a href="{{ .Site.BaseURL }}">{{ .Site.Hostname }}</a>
{{ if gt (len .Footer.MailingAddress) 0 }}
<span class="microblog_divider">|</span> {{ .Footer.MailingAddress }}
{{ end }}
</div>
I don’t recall setting anything up beyond whatever was in the initial instructions many moons ago @Mtt
That’s from the newsletter settings page under account
↑ That’s the portion that’s causing the error. But that is no longer part of the theme.
@manton If he just deleted newsletter.html from the installation, would it rebuild with the default implementation?
Or perhaps, I should just delete that code from the Newsletters code box under Newsletters settings?
Yep, that’s the way to do it. Micro.blog will fall back to the default template.