# Sitemap Route - Call to a member function representation() on boolean

**URL:** <https://forum.getkirby.com/t/sitemap-route-call-to-a-member-function-representation-on-boolean/11507>\
**Category:** Questions\
**Tags:** v2\
**Created:** [October 24, 2018, 1:21pm UTC](https://forum.getkirby.com/t/sitemap-route-call-to-a-member-function-representation-on-boolean/11507 "2018-10-24T13:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carstengrimm](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/carstengrimm/32/188_2.png) [@carstengrimm](https://forum.getkirby.com/u/carstengrimm)\
**Post date:** [October 24, 2018, 1:21pm UTC](https://forum.getkirby.com/t/sitemap-route-call-to-a-member-function-representation-on-boolean/11507/1 "2018-10-24T13:21:55Z")

</div>

I’ve been playing around with routes to get a sitemap going and there are quite a code-snippets to be found in the forum. While the original kirby sitemap tutorial would suit my needs, this as well as all others I’ve tried failed. I’ve had these kinds of things working before and could not find any informations about the error given…

Erroring out with:

```auto
Call to a member function representation() on boolean

```

 ![Kirby_CMS_Debugger_-_Vivaldi_2018-10-24_15-19-34](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/0/0cc274218b4abb10bafa2e3aceff37050650062e.jpeg)

> [@Correct way to set up multi-language sitemap?](https://forum.getkirby.com/t/correct-way-to-set-up-multi-language-sitemap/5037/12):
>
> I’ve been fiddling around with this as well and i got it working, but the issue here is, that it’s really painfully slow. For 288 URLs in total it takes ~40s to generate the sitemap.xml here localy snail Features Works for both single and multi -language Generates alternate hreflang entries for multi-language Exclude by template Mark certain pages (contact) important for higher priority Style it with a assets/css/sitemap.xsl if present \<?php // Based on https://github.com/thgh/kirby-plugin…

Edit:  
Never Mind, i had a typo in the url, the route is working, the representation error appears when there’s no existing page as well as no route - would need a fallback to go for error page…

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:25pm UTC](https://forum.getkirby.com/t/sitemap-route-call-to-a-member-function-representation-on-boolean/11507/2 "2025-02-06T17:25:57Z")

</div>

Archived on February 6, 2025, 5:25pm UTC


