pratik
pratik
Error: Error building site: failed to render pages: render of "page" failed: "/pratik_08486b/layouts/now/single.html:6:9": execute of template failed: template: now/single.html:6:9: executing "main" at : error calling first: both limit and seq must be provided I get this error infrequently o... microblog.pratikmhatre.com
|
Embed
Progress spinner
manton
manton

@pratik This happens on my blog sometimes too. Haven’t figured it out yet, and it just fixes itself the next run through. Would like to solve it though.

|
Embed
Progress spinner
sod
sod

@pratik Which theme, plug-in, or custom theme provides the template now/single.html and is it public somewhere to read?

|
Embed
Progress spinner
In reply to
sod
sod

@pratik Thanks. The error is thrown by a line of code that tries to fetch one blog post from the category named now. For some reason, it fails. Instead of getting a list of blog posts to pick the latest one from, Hugo gets nothing and thus throws an error.

Could it have something to do with partial rebuilds, @manton? When Hugo tries to construct Pratik’s now page, there are no posts available during build time. Maybe?

|
Embed
Progress spinner
manton
manton

@sod @pratik It must be something related to that, yes. I just realized that the page it happens on for me is trying to get posts from a specific category with .Site.Taxonomies.categories.categoryname. So maybe there are no posts for that category at build time.

|
Embed
Progress spinner