One-pager as home page not working after upload to server

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!

It’s a bit strange that this error only happens on the remote server, not locally. This refers to a link kirbytag, and it seems that the stored value cannot be resolved. Maybe something with the Uuids was messed up? Please double check your links.

The error is an issue that will be fixed in Kirby 4.1.0, to be released next week. You can already download the release candidate here: Release 4.1.0-rc.1 · getkirby/kirby · GitHub (just make sure to replace again after release)

Thanks for your reply!

I’m gonna wait for the new release and hope, that the problem is solved than. Also, i will double check my links.