So I am building a fairly standard portfolio website that has two languages, en (default) and de.
On my localhost everything works fine the domain gets “re-directed” (not sure if thats the right wording here) to the domain.com/en and works as expected. On the server it just stayed on domain.com without automatically adding the /en. When I added it manually it did work, but this never happened before. Now suddenly it gives me an error:
Kirby\Cms\Page::urlForLanguage(): Argument #2 ($options) must be of type ?array, Kirby\Content\Field given, called in pathToWebsite/kirby/src/Cms/Page.php on line 1266
but debugger gives me the type error in line 1298
public function urlForLanguage(
Any ideas where to start fixing this? I don’t think I changed anything out of the ordinary. Hosting is on Strato, PHP is 8.3.31, Kirby is 5.5.2, website sits in a folder inside the root. I downloaded the whole site except for the content folder (since its large) and locally it does work…