Hello everyone,
after updating from version 4 to 5.2.2, I get the following error message:
Der Bereich “spread_image_section” konnte nicht geladen werden:
Kirby\Panel\Collector\FilesCollector::__construct(): Argument #4 ($parent) must be of type Kirby\Cms\Site|Kirby\Cms\Page|Kirby\Cms\User|null, Kirby\Cms\File given, called in /Users/[…]/kirby/config/sections/files.php on line 68
It relates to a files section in the image blueprint.
image.yml
Title: Image
accept: image/*
focus: false
columns:
left_column:
width: 1/3
sections:
spread_image_section:
type: files
label:
en: "Spread"
de: "Druckbogen"
layout: cards
size: large
limit: 1
link: false
query: file.parent.images.filterBy("template", "spread").filterBy("spread_number_field", file.document_spread_field)
image:
cover: false
spread_data_section:
type: fields
fields:
document_spread_field:
label:
en: "Document Spread"
de: "Druckbogen"
type: number
width: 1/2
right_column:
width: 2/3
sections:
...
Can anyone tell me what has changed here? Is this no longer possible in v5?
Thanks!



