# Files blueprint issue

**URL:** <https://forum.getkirby.com/t/files-blueprint-issue/18484>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 9, 2020, 2:56pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484 "2020-06-09T14:56:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 2:56pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/1 "2020-06-09T14:56:11Z")

</div>

Hi, I’m developing a website with Kirby. Everything works great on my localhost, but when I uploaded on a server I get a problem with files blueprint. If I click on the image I get a “unauthenticated” message (or something like that, it’s very quick the screen, and then immediately I get jumped back to the main panel page. I developed several Kirby websites I never get this error, so I think it’s probably something connected with the hosting (Godaddy). Any suggestions? I need to access the image blueprint to set captions.

Thanks!

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 3:01pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/2 "2020-06-09T15:01:49Z")

</div>

Can you see anything more detailed in the browser’s console maybe (with debugging enabled)?

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 3:04pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/3 "2020-06-09T15:04:54Z")

</div>

Yes, there’s an error when I click on the image, but the refresh is too quick and I can’t read the error message… How can I find it?  
Thanks

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 3:06pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/4 "2020-06-09T15:06:20Z")

</div>

Found! 🙂

![Schermata 2020-06-09 alle 17.05.31](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/2/233ac1d40432101727ad8b8afc1ff349a4c211df.png)

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 3:11pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/5 "2020-06-09T15:11:38Z")

</div>

Could you please open these errors, so that we can see the complete message?

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 3:33pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/6 "2020-06-09T15:33:20Z")

</div>

![Schermata 2020-06-09 alle 17.32.16](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/0/0c0ce4c6366841abfa4d45e87212e77e40ab1ab2.png)

It says: Impossible to find the property. The object could not exist anymore  
Thanks!

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 3:36pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/7 "2020-06-09T15:36:51Z")

</div>

I meant this second bit here:

 ![Bildschirmfoto 2020-06-09 um 17.36.00](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/f/f09c754fe5590bcf7a81c7316a878b873ddc5475.png)

There seems to be more information lurking after the dots…

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 3:40pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/8 "2020-06-09T15:40:39Z")

</div>

When I click on the object it says it can’t retrieve info about the object as it’s not existing anymore…

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 3:47pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/9 "2020-06-09T15:47:38Z")

</div>

Does other stuff work, like uploading files, editing pages etc.?

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 3:49pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/10 "2020-06-09T15:49:10Z")

</div>

yes, everything is fine! Also I must say that it works on other website with different hosting…

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 3:57pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/11 "2020-06-09T15:57:00Z")

</div>

Could you please post the file blueprint? Also, is there anything specific about the filenames? Godaddy is a pain…

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 3:59pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/12 "2020-06-09T15:59:10Z")

</div>

this is the part of the page blueprint where I upload images:

```
      images:
        label: Images
        fields:
          image:
            type: files
            max: 3
            template: image             

```

this is the files/image.yml

title: Image  
fields:  
caption:  
type: text

What do you mean with filenames?  
Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 4:02pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/13 "2020-06-09T16:02:16Z")

</div>

If I click on the link of the image blueprint page i get this:  
{“status”:“error”,“message”:“Unauthenticated”,“code”:403,“exception”:“Kirby\Exception\PermissionException”,“key”:“error.permission”,“file”:"/debug/kirby/config/api/authentication.php",“line”:10,“details”:[],“route”:"(.\*)/files/([a-zA-Z0-9\.\-\_%= \+\@\(\)]+)"}

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 4:10pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/14 "2020-06-09T16:10:36Z")

</div>

Thanks. The error is thrown because of this condition:

```auto
if ($auth->type() === 'session' && $auth->csrf() === false) {

```

So there is a problem with the csrf token… But that doesn’t explain why it only happens when you want to access the image view 🤔

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 4:11pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/15 "2020-06-09T16:11:37Z")

</div>

I don’t either know what a csrf token is 😅

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 4:12pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/16 "2020-06-09T16:12:04Z")

</div>

Have you tried to remove the media folder and clear the session folder?

A csrf token is used to prevent Cross-Site-Request-Forgery, to make sure that a request comes from your site. As such, it is a security measure.

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 4:15pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/17 "2020-06-09T16:15:50Z")

</div>

Thanks! 🙂  
Yes, I deleted the media folder but nothing changed…

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 4:28pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/18 "2020-06-09T16:28:20Z")

</div>

1. Are you using the latest Kirby version (3.3.6)? If not, download the latest copy and replace the current Kirby folder with the new one. If that doesn’t help:

2. Have you tried if the same happens with a fresh Starterkit on the same server?

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Mason](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lorenzo_mason/32/8632_2.png) [@Lorenzo\_Mason](https://forum.getkirby.com/u/Lorenzo_Mason)\
**Post date:** [June 9, 2020, 5:07pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/19 "2020-06-09T17:07:22Z")

</div>

Done, but it doesn’t fix 😭

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 9, 2020, 5:08pm UTC](https://forum.getkirby.com/t/files-blueprint-issue/18484/20 "2020-06-09T17:08:45Z")

</div>

Does that mean the same happens with a fresh Starterkit?

[Next page](https://forum.getkirby.com/t/files-blueprint-issue/18484.md?page=2)
