Kirby is giving me the following error whenever I’m on a certain page.
I tried deleting and creating the page again. I also set the blueprint to the default blueprint.
The page is accessible and editable in the panel.
For testing reasons, the template for the page itself does not include any php. Unfortunately, I can’t figure out why it’s throwing that error or what the error means. Google did not help.
I think we should try to narrow it down a bit. What happens if you keep blueprint name , template name and text filename and only rename the folder name?
If the blueprint name, the template name and text filename is “impressum” and the folder name is something like “test” it works. If I change the folder name back to “impressum” it throwing the error again.
Hm, I have. no idea what’s happening there. Have you deleted the media and session folders after updating and cleared the cache folder and your browser cache?
For anyone coming here with the same error: It was caused by a route with the same pattern as the page slug that returned a new page object with the content set to an object instead of an array.
[
'pattern' => 'impressum',
'action' => function () {
return new Page([
'slug' => 'impressum',
'template' => 'impressum',
'content' => page('impressum') // content expects an array, not an object
]);
}
],