# Guides 2.0 errors when running server

**URL:** <https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692>\
**Category:** questions\
**Created:** [April 7, 2022, 12:14pm UTC](https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692 "2022-04-07T12:14:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/joel/32/537_2.png) [@joel](https://discourse.hanakai.org/u/joel)\
**Post date:** [April 7, 2022, 12:14pm UTC](https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692/1 "2022-04-07T12:14:29Z")

</div>

I’m trying to run the guide on my local machine, I don’t know Hugo.

First I needed to add:

```auto
[security]
  enableInlineShortcodes = false
  [security.exec]
    allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
    osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
  [security.funcs]
    getenv = ['^HUGO_', '^BRANCH']
  [security.http]
    methods = ['(?i)GET|POST']
    urls = ['.*']

```

to `config.toml` to whitelisted `BRANCH`

and now when I try to start the server I got:

```auto
bin/server
Start building sites …
hugo v0.96.0+extended darwin/arm64 BuildDate=unknown
ERROR 2022/04/07 14:10:19 render of "page" failed: execute of template failed: template: _default/single.html:51:12: executing "_default/single.html" at <partial "single/sidebar" .>: error calling partial: "guides/themes/hanami/layouts/partials/single/sidebar.html:36:17": execute of template failed: template: partials/single/sidebar.html:36:17: executing "partials/single/sidebar.html" at <.URL>: can't evaluate field URL in type page.Page
ERROR 2022/04/07 14:10:19 render of "page" failed: execute of template failed: template: _default/single.html:51:12: executing "_default/single.html" at <partial "single/sidebar" .>: error calling partial: "guides/themes/hanami/layouts/partials/single/sidebar.html:36:17": execute of template failed: template: partials/single/sidebar.html:36:17: executing "partials/single/sidebar.html" at <.URL>: can't evaluate field URL in type page.Page
ERROR 2022/04/07 14:10:19 render of "page" failed: execute of template failed: template: _default/single.html:51:12: executing "_default/single.html" at <partial "single/sidebar" .>: error calling partial: "guides/themes/hanami/layouts/partials/single/sidebar.html:36:17": execute of template failed: template: partials/single/sidebar.html:36:17: executing "partials/single/sidebar.html" at <.URL>: can't evaluate field URL in type page.Page
ERROR 2022/04/07 14:10:19 render of "page" failed: execute of template failed: template: _default/single.html:51:12: executing "_default/single.html" at <partial "single/sidebar" .>: error calling partial: "guides/themes/hanami/layouts/partials/single/sidebar.html:36:17": execute of template failed: template: partials/single/sidebar.html:36:17: executing "partials/single/sidebar.html" at <.URL>: can't evaluate field URL in type page.Page
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:51:12: executing "_default/single.html" at <partial "single/sidebar" .>: error calling partial: "guides/themes/hanami/layouts/partials/single/sidebar.html:36:17": execute of template failed: template: partials/single/sidebar.html:36:17: executing "partials/single/sidebar.html" at <.URL>: can't evaluate field URL in type page.Page
Built in 48 ms

```

Any idea?

---

<div class="post-metadata">

**Author:** ![jodosha](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/jodosha/32/710_2.png) [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Post date:** [April 7, 2022, 12:19pm UTC](https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692/2 "2022-04-07T12:19:13Z")

</div>

👋 hey @joel which version of Hugo are you using? Check with `hugo version`.

---

<div class="post-metadata">

**Author:** ![joel](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/joel/32/537_2.png) [@joel](https://discourse.hanakai.org/u/joel)\
**Post date:** [April 20, 2022, 3:37pm UTC](https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692/3 "2022-04-20T15:37:48Z")

</div>

I guess it is 😅

> [@joel](#):
>
> `hugo v0.96.0`

Not far from the last one [Releases · gohugoio/hugo · GitHub](https://github.com/gohugoio/hugo/releases)  
Do I need to downgrade it?

---

<div class="post-metadata">

**Author:** ![tak1n](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/tak1n/32/543_2.png) [@tak1n](https://discourse.hanakai.org/u/tak1n)\
**Post date:** [April 30, 2022, 3:39pm UTC](https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692/4 "2022-04-30T15:39:22Z")

</div>

Can you try with `v0.92.2` of hugo? See [Force Hugo version for Netlify · Issue #103 · hanami/guides · GitHub](https://github.com/hanami/guides/issues/103#issuecomment-1114007904).

---

<div class="post-metadata">

**Author:** ![jodosha](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/jodosha/32/710_2.png) [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Post date:** [November 9, 2022, 1:04pm UTC](https://discourse.hanakai.org/t/guides-2-0-errors-when-running-server/692/5 "2022-11-09T13:04:27Z")

</div>


