Method Kirbytext::__toString() must not throw an exception, caught Error: Call to a member function url() on null
The problem is that this issue occur only when I try to access the app using the loadbalancer link: https://gtm-nx-food-com … but when I try with the ip address http://ip_address there is no issue.
texnixe
November 21, 2019, 3:24pm
2
Please post your template code for the start page including snippets you are calling.
Where Can I find this template code for the start page?
texnixe
November 21, 2019, 3:30pm
4
Is this a fresh Starterkit you just downloaded or some project?
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:
texnixe
November 21, 2019, 4:08pm
7
Ok, you can find the templates in the /site/templates
folder. For the homepage, there is usually a home.php
template.
root@nxfood:/var/www/html/site/templates# cat home.php
<?php
snippet('header');
$page->modules();
snippet('footer');
snippet('end');
root@nxfood:/var/www/html/site/templates#
texnixe
November 21, 2019, 5:43pm
9
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.