Hi everyone,
i try to build a website, following the one-pager-sample for the home page using pages as parts for sections. While it works perfect on my local machine, i get the following error message after uploading it to the server: Call to a member function url() on null
The error refers to the /kirby/config/tags.php file and the line starting with $tag
// if value is a UUID, resolve to page/file model
// and use the URL as value
if (
Uuid::is($tag->value, 'page') === true ||
Uuid::is($tag->value, 'file') === true
) {
$tag->value = Uuid::for($tag->value)->model()->url();
}
I am kind of new to building websites and have no idea what is wrong. The error-message won’t show up, if i delete the snippets i am using to load the content of the parts. But of course the home page won’t show any content then.
Can anyone help me with that?
Thanks!