# Errors while building site after updating content

**URL:** <https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447>\
**Category:** support\
**Created:** [March 2, 2022, 1:00pm UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447 "2022-03-02T13:00:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ank0m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ank0m/32/15272_2.png) [@ank0m](https://discourse.gohugo.io/u/ank0m)\
**Post date:** [March 2, 2022, 1:00pm UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/1 "2022-03-02T13:00:47Z")

</div>

Hello Hugo professionals!

Need some help please. Two days ago I was able to build my updated page (only content updates) and since today I get the following errors:

```auto
Start building sites …
hugo v0.93.0+extended linux/amd64 BuildDate=unknown
ERROR 2022/03/02 13:49:39 render of "page" failed: "/home/fh/repos/hmbrg.xyz/layouts/_default/single.html:4:21": execute of template failed: template: _default/single.html:4:4: executing "main" at <partial "tags.html" .>: error calling partial: execute of template failed: template: partials/tags.html:4:21: executing "partials/tags.html" at <apply (sort .) "partial" "link" ".">: error calling apply: called apply using string as type context.Context
ERROR 2022/03/02 13:49:39 render of "page" failed: "/home/fh/repos/hmbrg.xyz/layouts/_default/single.html:4:21": execute of template failed: template: _default/single.html:4:4: executing "main" at <partial "tags.html" .>: error calling partial: execute of template failed: template: partials/tags.html:4:21: executing "partials/tags.html" at <apply (sort .) "partial" "link" ".">: error calling apply: called apply using string as type context.Context
ERROR 2022/03/02 13:49:39 render of "page" failed: "/home/fh/repos/hmbrg.xyz/layouts/_default/single.html:4:21": execute of template failed: template: _default/single.html:4:4: executing "main" at <partial "tags.html" .>: error calling partial: execute of template failed: template: partials/tags.html:4:21: executing "partials/tags.html" at <apply (sort .) "partial" "link" ".">: error calling apply: called apply using string as type context.Context
ERROR 2022/03/02 13:49:39 render of "page" failed: "/home/fh/repos/hmbrg.xyz/layouts/_default/single.html:4:21": execute of template failed: template: _default/single.html:4:4: executing "main" at <partial "tags.html" .>: error calling partial: execute of template failed: template: partials/tags.html:4:21: executing "partials/tags.html" at <apply (sort .) "partial" "link" ".">: error calling apply: called apply using string as type context.Context
Error: Error building site: failed to render pages: render of "page" failed: "/home/fh/repos/hmbrg.xyz/layouts/_default/single.html:4:21": execute of template failed: template: _default/single.html:4:4: executing "main" at <partial "tags.html" .>: error calling partial: execute of template failed: template: partials/tags.html:4:21: executing "partials/tags.html" at <apply (sort .) "partial" "link" ".">: error calling apply: called
apply using string as type context.Context

```

[Link to my website:](https://hmbrg.xyz)  
[Git repo of my website:](https://git.sr.ht/~hmbrg/hmbrg.xyz/tree)

Only changes I made was regarding content.

---

<div class="post-metadata">

**Author:** ![pamubay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pamubay/32/17838_2.png) [@pamubay](https://discourse.gohugo.io/u/pamubay)\
**Post date:** [March 2, 2022, 1:37pm UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/2 "2022-03-02T13:37:50Z")

</div>

Looks like you hit this issue:

> <https://github.com/gohugoio/hugo/issues/9585>
>
> I use the latest example in \[the apply function\](https://gohugo.io/functions/app…ly/) to render my tags in my blog. With the new version, this is not possible anymore and I get the following error:
> 
> \`\`\`txt
> Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: block/single.html:18:5: executing "main" at \<partial "page/footer.html" .\>: error calling partial: "~/site/themes/theme/layouts/partials/page/footer.html:22:19": execute of template failed: template: partials/page/footer.html:22:19: executing "partials/page/footer.html" at \<apply $sort "partial" "post-tag-link" "."\>: error calling apply: called apply using string as type context.Context
> \`\`\`
> 
> 
> 
> \### What version of Hugo are you using (\`hugo version\`)?
> 
> \<pre\>
> $ hugo version
> hugo v0.93.0+extended darwin/amd64 BuildDate=unknown
> \</pre\>
> 
> \### Does this issue reproduce with the latest release?
> 
> Yes, it was working fine with v0.92.2.

Already fixed, but not yet released.

> <https://github.com/gohugoio/hugo/pull/9587>
>
> As introduced in \`partial\` and \`partialCached\` in Hugo 0.93.0.
> 
> Fixes #9585

---

<div class="post-metadata">

**Author:** ![ank0m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ank0m/32/15272_2.png) [@ank0m](https://discourse.gohugo.io/u/ank0m)\
**Post date:** [March 2, 2022, 1:46pm UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/3 "2022-03-02T13:46:51Z")

</div>

Perfect, then I’ll wait for the next release of Hugo. Thanks for clarification, highly appreciated.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [March 2, 2022, 2:51pm UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/4 "2022-03-02T14:51:12Z")

</div>

Sorry for the noise … This is fixed here: [Release v0.93.1 · gohugoio/hugo · GitHub](https://github.com/gohugoio/hugo/releases/tag/v0.93.1)

---

<div class="post-metadata">

**Author:** ![ank0m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ank0m/32/15272_2.png) [@ank0m](https://discourse.gohugo.io/u/ank0m)\
**Post date:** [March 2, 2022, 3:32pm UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/5 "2022-03-02T15:32:39Z")

</div>

Nice! Then it should hit my package manager very soon 😄

---

<div class="post-metadata">

**Author:** ![ank0m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ank0m/32/15272_2.png) [@ank0m](https://discourse.gohugo.io/u/ank0m)\
**Post date:** [March 3, 2022, 6:21am UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/6 "2022-03-03T06:21:26Z")

</div>

Can confirm that everything is working as expected after updating to Hugo 0.93.1. Special thanks to @bep who fixed this issue!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [March 5, 2022, 6:22am UTC](https://discourse.gohugo.io/t/errors-while-building-site-after-updating-content/37447/7 "2022-03-05T06:22:08Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
