Pages section not working anymore on panel

Hi,
I’m working on Kirby 3.4.2. Everything was fine and then suddenly my pages section didn’t show anymore.

I got this error:

La section « primarypages » n’a pu être chargée: Argument 2 passed to Kirby\Cms\Blueprint::normalizeColumns() must be of the type array, string given, called in C:\wamp64\www\ms-avocat.com\kirby\src\Cms\Blueprint.php on line 694

Could you please post your blueprint?

The primarypages doesn’t work but the two others are fine.

tabs:

  general:
    label: Général
    columns:
      pages:
        width: 2/3
        sections:
          pagesSection:
            type: fields
            fields:
              pagesSectionTitle: 
                label: Pages du site
                type: headline
          primarypages:
            type: pages
            headline: Pages principales
            layout: cards
            templates:
              - about
              - home
              - default
              - droit
              - content

          secondarypages:
            type: pages
            headline: Pages secondaires
            status: unlisted
            create: false
    
          notes: sections/notes

It also doesn’t work on my home blueprint: (I only paste the not working section)

  - width: 1/1
    sections:
      droitsPages:
        type: pages
        headline: Pages Conseil
        template: droit
        parent: site
        layout: cards
        size: large
        sortable: true
        create: false

Hm, I tested your blueprint and cannot reproduce this. Check if your indentation is somehow wrong or if you are mixing tabs and spaces (yaml files should use spaces for indentation only, not tabs).

What do you mean by that? In the guide, there are spaces when using tabs Layout | Kirby CMS

Or do you mean the keys ‘tabs’ and ‘space’ on my keyboard? There’s no difference in Visual Studio Code (a tab = two spaces).

I checked my indentation and everything seems fine, I don’t know what to do.

Yes, depends on your settings. Maybe make these hidden characters visible.

You you send me the file for testing?

Or you recreate the file again from scratch. Since the rest is working, the file in general seems to be readable.

I found out what was the problem. I created a new template with a new blueprint and it broke everything. I deleted the pages and the blueprint and recreated it from scratch. Now it works well.

Thanks @texnixe for the quick answers.