I suspect that one or more of the pages rendered by this template does not have a featured_image parameter in front matter. You need to code defensively:
{{ with .Params.featured_image }}
{{ with resources.GetRemote . }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ end }}
{{ end }}
Even better with some error checking:
{{ with .Params.featured_image }}
{{ with resources.GetRemote . }}
{{ with .Err }}
{{ errorf "%s" . }}
{{ else }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ end }}
{{ else }}
{{ errorf "Unable to get remote image %s" . }}
{{ end }}
{{ end }}
Thank you so much! You are right! Some pages did not have the image set. I was thinking it wouldn’t matter as I was only trying to view this one page that does have featured image set. I wasn’t realizing that hugo always builds the whole website even when running hugo server. That outermost with solved it. Thank you!
Would’ve been helpful if the error message or running --debug --verbose said on which content/page the error occurs.