# Locate the template source for a deprecation warning

**URL:** <https://discourse.gohugo.io/t/locate-the-template-source-for-a-deprecation-warning/57543>\
**Category:** tips & tricks\
**Created:** [September 11, 2026, 10:29am UTC](https://discourse.gohugo.io/t/locate-the-template-source-for-a-deprecation-warning/57543 "2026-09-11T10:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [September 11, 2026, 10:29am UTC](https://discourse.gohugo.io/t/locate-the-template-source-for-a-deprecation-warning/57543/1 "2026-09-11T10:29:31Z")

</div>

Run:

```auto
 hugo --panicOnWarning

```

---

<div class="post-metadata">

**Author:** ![gbhat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gbhat/32/23143_2.png) [@gbhat](https://discourse.gohugo.io/u/gbhat)\
**Post date:** [September 11, 2026, 12:21pm UTC](https://discourse.gohugo.io/t/locate-the-template-source-for-a-deprecation-warning/57543/2 "2026-09-11T12:21:02Z")

</div>

Thanks a ton for this tip:

```auto
error calling jsonify: .Page.IsNode was deprecated in Hugo v0.163.0 and will be removed in a future release. Use .Page.IsBranch or not .Page.IsPage instead.

```

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [September 17, 2026, 11:03am UTC](https://discourse.gohugo.io/t/locate-the-template-source-for-a-deprecation-warning/57543/3 "2026-09-17T11:03:58Z")

</div>

mmh, keep in mind, that many use warnf statements for user information or debugging
