The returned variable "pages" from the controller "performance" is not of the required type "Kirby\Cms\Pages"

I have a page »performance« that functions as a detail page but also has a pages section so I can add one or more subpages. In this case its a video template.

The subpage works as expected but whenever I move the subpage from draft to published the performance page throws this error:

The returned variable “pages” from the controller “performance” is not of the required type “Kirby\Cms\Pages”

I removed all code from video page and performance page and the error still occurs.

Could you post your blueprint, please?

title: Performance
icon: 🎭

columns:
  left:
    width: 2/3
    fields:
      coverimage:
        type: files
      coverimagenofilter:
        type: files
      gallery:
        type: files
        layout: cards
      subtitle:
        label: Untertitel
        type: text
      text:
        label: Text
        type: textarea
        size: large
      artists:
        label: KĂĽnstler*innen/Kollektiv
        type: text
      kurzbio:
        label: KĂĽnstler*innen/Kollektiv Kurz Bio
        type: textarea
        size: small
      kurzbiolinks:
        type: structure
        fields:
          url:
            type: url
          text:
            type: text
      besetzung:
        label: Besetzung
        type: structure
        fields:
          job:
            label: Tätigkeit
            type: text
          names:
            label: Name(n)
            type: text
      foerdersatz:
        label: Fördersatz
        type: textarea
        size: small
  right:
    width: 1/3
    sections:
      content:
        type: fields
        fields:
          type:
            label: Art des Programmpunkts
            type: tags
          terminfrom:
            label: Datum von (nur eintragen bei Events, die ĂĽber mehrere Tage laufen)
            type: date
            time: false
          terminuntil:
            label: Datum bis (nur eintragen bei Events, die ĂĽber mehrere Tage laufen)
            type: date
            time: false
          vonbis:
            label: Termine von bis?
            type: toggle
            text:
              - "nein"
              - "ja"
          datee:
            type: structure
            label: Daten (nur Tage eintragen, die im Timetable angezeigt werden sollen)
            fields:
              date:
                type: date
                label: Datum
              time:
                type: time
                label: Beginn
              timeend:
                type: time
                label: Ende

          timemisc:
            type: text
            label: Andere Zeit (z.B. durchgängig oder von bis)

          spielort:
            label: Spielort
            type: text
          ticketlink:
            label: Ticketlink
            type: url
          ticketlinkonline:
            label: Ticketlink Online
            type: url
      video:
        type: pages
        template: video

Could you also please post your performance.php controller, the error seems to be somewhere there…

I don’t use any controllers in this project. And even when I delete everything from my performance.php template, it still throws the same error.

Okay so it works when I set the video page to unlisted. This works for this occasion, but I would still like to know what’s causing this issue.

Hm, I’m a bit at a loss. What is the video page?

The video page is the subpage of the performance page. I will try with a clean kirby installation when I finished this project and will report back, when I found the issue!