# Cannot access the main page

**URL:** <https://forum.getkirby.com/t/cannot-access-the-main-page/16406>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 21, 2019, 3:22pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406 "2019-11-21T15:22:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreony](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@andreony](https://forum.getkirby.com/u/andreony)\
**Post date:** [November 21, 2019, 3:22pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/1 "2019-11-21T15:22:01Z")

</div>

Method Kirbytext::\_\_toString() must not throw an exception, caught Error: Call to a member function url() on null

 ![kirby](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/81f69ea0754bd5c3de3e3e2ff7d9df40ee412340.png)

The problem is that this issue occur only when I try to access the app using the loadbalancer link: [https://gtm-nx-food-com](https://gtm-nx-food-com)… but when I try with the ip address http://ip\_address there is no issue.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 21, 2019, 3:24pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/2 "2019-11-21T15:24:56Z")

</div>

Please post your template code for the start page including snippets you are calling.

---

<div class="post-metadata">

**Author:** ![andreony](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@andreony](https://forum.getkirby.com/u/andreony)\
**Post date:** [November 21, 2019, 3:29pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/3 "2019-11-21T15:29:07Z")

</div>

Where Can I find this template code for the start page?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 21, 2019, 3:30pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/4 "2019-11-21T15:30:32Z")

</div>

Is this a fresh Starterkit you just downloaded or some project?

---

<div class="post-metadata">

**Author:** ![andreony](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@andreony](https://forum.getkirby.com/u/andreony)\
**Post date:** [November 21, 2019, 3:37pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/5 "2019-11-21T15:37:01Z")

</div>

It’s a new project received but the developers gave us this package (so I think it’s not a fresh starterkit). it looks like:

 ![kirby_1](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/a/a8657d6325eeb846d89391b021471d103d329892.png)

---

<div class="post-metadata">

**Author:** ![andreony](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@andreony](https://forum.getkirby.com/u/andreony)\
**Post date:** [November 21, 2019, 3:37pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/6 "2019-11-21T15:37:36Z")

</div>

![kirby_2](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/dcf8fa50e4b1d0ffbee5e7acf39f110ac0f0d395.png)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 21, 2019, 4:08pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/7 "2019-11-21T16:08:56Z")

</div>

Ok, you can find the templates in the `/site/templates` folder. For the homepage, there is usually a `home.php` template.

---

<div class="post-metadata">

**Author:** ![andreony](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@andreony](https://forum.getkirby.com/u/andreony)\
**Post date:** [November 21, 2019, 4:52pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/8 "2019-11-21T16:52:47Z")

</div>

root@nxfood:/var/www/html/site/templates# cat home.php

```auto
<?php

snippet('header');

$page->modules();

snippet('footer');

snippet('end');

```

root@nxfood:/var/www/html/site/templates#

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 21, 2019, 5:43pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/9 "2019-11-21T17:43:23Z")

</div>

I only just realized that you added some information about the loadbalancer link in your first post.

Sounds as if there’s some misconfiguration on the server side or some requirement missing.

---

<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:23pm UTC](https://forum.getkirby.com/t/cannot-access-the-main-page/16406/10 "2025-02-06T17:23:06Z")

</div>


