Help ! Call to a member function url() on null

Hallo, heute ist folgende Fehlermeldung aufgetaucht (s. Bildschirmfoto). Statt der Home-Seite wird der Fehlercode angezeigt. Unterseiten sind noch via URL abrufbar. Wie kann ich den Error beheben?

Bitte für ganz Dumme beschreiben…
Danke für die Hilfe!
N.

This code (line 6 in your screenshot) should never be uses like it is

$page->previewimage()->toFile()->url()

because it will throw this error when the file does not exist.

Always use this as described in the documentation: Files | Kirby CMS

Please note that the forum language is English, thanks.

1 Like

Thank you, I fixed the problem.