Random AuthException error in the Panel

Recently, under 5.1.3 and 5.1.4, I’ve got an authentification error when trying to open a section in the panel:

The blueprint looks like this:

title: Random facts
pages: false
files: false
icon: shuffle
fields:
  facts:
    label: Facts
    type: structure
    fields:
      text:
        label: Text
        type: text
        translate: true
      fact_link:
        label: Lien
        type: link
        options:
          - page
          - url
        width: 1/2
        required: true
      fact_anchor:
        label: Anchor
        type: link
        options:
          - anchor
        width: 1/2
      # fact_related:
      #   label: related page
      #   type: pages
      #   query: site.children.listed
      #   multiple: false
and this error like this:
status “error”
message “Unauthenticated”
code 401
exception “Kirby\\Exception\\AuthException”
key “error.auth”
file “/kirby/config/api/authentication.php”
line 14
details
route “pages/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)”

Here’s a quick video of what’s happening

It only happens in this section.

;(

Many thanks for any helps

Nicolas

I cannot reproduce this in a 5.1.3 Starterkit, although I get a different weird issue when clicking on a structure item: The unsaved changes buttons pop up.

Having said that, you should remove those pages: false, and files: false props, they are leftovers of Kirby 2 or so, and don’t exist anymore.

Other than that: Please make sure that you have no old stuff in the media folder (if you updated recently), and clear the browser cache.