# Random AuthException error in the Panel

**URL:** <https://forum.getkirby.com/t/random-authexception-error-in-the-panel/35021>\
**Category:** Questions\
**Tags:** v5\
**Created:** [November 28, 2025, 11:27am UTC](https://forum.getkirby.com/t/random-authexception-error-in-the-panel/35021 "2025-11-28T11:27:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolasbulb](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/nicolasbulb/32/1674_2.png) [@nicolasbulb](https://forum.getkirby.com/u/nicolasbulb)\
**Post date:** [November 28, 2025, 11:27am UTC](https://forum.getkirby.com/t/random-authexception-error-in-the-panel/35021/1 "2025-11-28T11:27:05Z")

</div>

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:

```yaml
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](https://www.bulbfactory.ch/clients/softwares/support/getkirby/5/2025-11-25-gx-website-3_4-panel-random-facts-bug-desktop.mp4) of what’s happening

It only happens in this section.

;(

Many thanks for any helps

Nicolas

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 30, 2025, 10:44am UTC](https://forum.getkirby.com/t/random-authexception-error-in-the-panel/35021/2 "2025-11-30T10:44:54Z")

</div>

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.
