Using databases; add page

Hello,

I have a setup using an sqlite database for content. This worked fine in Kirby 3.

With Kirby 4 I have modified the setup (following the guide Content from a database | Kirby CMS). Basically this involves just changing the functions for the child page model.

I can make my list of pages (or comments) appear, and also edit those pages, however I have a problem when adding pages.

For my page section, if I use the correct template property name my pages from the database appear, but if I add a page the following error is thrown:

TypeError: n is undefined post http://omnitype.test/local/media/panel/c9e4dc50b8d6ed20385fdca95873b3a5/js/index.min.js:2

My comments page blueprint:

title: Comments

sections:
  comments:
    label: Comments
    type: pages
    info: '{{ page.user }}'
    template: comment

If I use the incorrect template name (capitalized), then I can add pages fine, but then nothing appears in my comments section:

title: Comments

sections:
  comments:
    label: Comments
    type: pages
    info: '{{ page.user }}'
    template: Comment

I have too much code to share here, but in a nutshell it’s taken directly from the guide above. Can anyone help me understand why this is happening?

Thanks

Does that mean your blueprint is indeed spelled `Comment.yml’ with a capital C? We recommend using lower case only for file names, because some operating systems are case-sensitive.

No, my template is named “comment.yml”, but if I purposefully misspell it here I CAN add pages. If I use the correct lowercase name I can not add pages.

I am talking about adding pages from the panel.

Similar to this Adding database entry from panel (comments example from the guide) - #2 by assbach but the solution does not work for me, maybe because I am using SQLite.

This is my table setup:

This is the problem: Content from a database Error - #8 by texnixe