# Typing and it deletes in seconds

**URL:** <https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037>\
**Category:** Questions\
**Tags:** v3\
**Created:** [July 24, 2019, 2:12pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037 "2019-07-24T14:12:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 24, 2019, 2:12pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/1 "2019-07-24T14:12:47Z")

</div>

A weird problem when uploaded to the server that when I type into the text fields the content automatically deletes in less than a second. Any help regarding this would be great as I have no idea. 😕 It works fine on my local machine.

![Screen%20Recording](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/b/b556e495bbab7362338d24e01b9c46d458d298c2.gif)

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [July 24, 2019, 2:26pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/2 "2019-07-24T14:26:10Z")

</div>

Check your write permissions for `/content`, `/media`, `/site` folders and subs.

When you start writing, a `.lock` file is opened in the corresponding folder.  
The write operation is being rolled back if there is no write permission.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [July 24, 2019, 2:32pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/3 "2019-07-24T14:32:30Z")

</div>

I could also be a problem with PHP sessions. Maybe check you php config. Clearing your browser cache could help too.

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 24, 2019, 2:43pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/4 "2019-07-24T14:43:46Z")

</div>

I tried both of those methods @ahmetbora and @jimbobrjames but neither worked. I tried deleting a page and this comes back at me now `The JSON response from the API could not be parsed. Please check your API connection.`

---

<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:** [July 24, 2019, 2:48pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/5 "2019-07-24T14:48:34Z")

</div>

Do you get any more information in your console?

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 24, 2019, 2:51pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/6 "2019-07-24T14:51:59Z")

</div>

Hi @texnixe

I get

```auto
DevTools failed to parse SourceMap: https://thehackspace.co.uk/panel/pages/drawer.css.map

```

and

```auto
Failed to load resource: the server responded with a status of 403 ()

app.js:1 Error: The JSON response from the API could not be parsed. Please check your API connection. 
at app.js:1 

```

---

<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:** [July 24, 2019, 2:55pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/7 "2019-07-24T14:55:27Z")

</div>

> [@Suleiman\_Leadbitter](#):
>
> 403

That sounds very much like a permission error after all. Have you made sure that your files and folders have 644/755?

Can you do anything? Upload files etc?

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 24, 2019, 3:51pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/8 "2019-07-24T15:51:40Z")

</div>

I have set all the files and folders to 777 and it still fails.

I get these in the console, something to do with a **lock file**

```auto
PATCH https://thehackspace.co.uk/api//pages/testing/lock 403

```

```auto
app.js:1 Error: The JSON response from the API could not be parsed. Please check your API connection.
    at app.js:1

```

```auto
app.js:1 DELETE https://thehackspace.co.uk/api//pages/testing/lock 403

```

```auto
Error: The JSON response from the API could not be parsed. Please check your API connection.
    at app.js:1

```

```auto
app.js:1 Uncaught (in promise) Error: The JSON response from the API could not be parsed. Please check your API connection.
    at app.js:1

```

---

<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:** [July 24, 2019, 3:53pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/9 "2019-07-24T15:53:00Z")

</div>

Ah, ok, then these HTTP requests are blocked it seems. I suggest you contact your hosting’s support.

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 24, 2019, 3:54pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/10 "2019-07-24T15:54:28Z")

</div>

Will do, thanks 🙂

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [July 24, 2019, 5:58pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/11 "2019-07-24T17:58:58Z")

</div>

@Suleiman_Leadbitter:  
Someone here in the forum had a problem with “PATCH”. May be you have a similar problem…  
Search here in the forum for details.

---

<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:** [July 24, 2019, 8:55pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/12 "2019-07-24T20:55:47Z")

</div>

> [@anon77445132](#):
>
> Search here in the forum for details.

Please always link to the solution you mean, otherwise this doesn’t help.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [July 25, 2019, 6:08am UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/13 "2019-07-25T06:08:36Z")

</div>

Look here:

[https://forum.getkirby.com/t/cant-save-pages-in-panel/13653/2](https://forum.getkirby.com/t/cant-save-pages-in-panel/13653/2)

---

<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:** [July 25, 2019, 6:31am UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/14 "2019-07-25T06:31:20Z")

</div>

@anon77445132 As far as I can see that topic doesn’t provide any more information than [what I already said above](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/9), that certain HTTP request may be blocked server side.

---

<div class="post-metadata">

**Author:** ![warg](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@warg](https://forum.getkirby.com/u/warg)\
**Post date:** [July 25, 2019, 9:25am UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/15 "2019-07-25T09:25:35Z")

</div>

> [@Suleiman\_Leadbitter](#):
>
> I have set all the files and folders to 777 and it still fails.

A short side note about this approach: NEVER ever do this to solve a problem anytime! It is really insecure and usually causes new issues with shared hosting or other setups, for example because it triggers security tools or support teams 😉 .

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 25, 2019, 9:27am UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/16 "2019-07-25T09:27:13Z")

</div>

I know, it was just to take it to an extreme

---

<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:** [July 25, 2019, 9:33am UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/17 "2019-07-25T09:33:50Z")

</div>

@Suleiman_Leadbitter Have you heard back from support?

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 25, 2019, 1:44pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/18 "2019-07-25T13:44:23Z")

</div>

> [@texnixe](#):
>
> HTTP request may be blocked

Not yet. Posted just before though and now waiting on the response.

---

<div class="post-metadata">

**Author:** ![Suleiman\_Leadbitter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/suleiman_leadbitter/32/5970_2.png) [@Suleiman\_Leadbitter](https://forum.getkirby.com/u/Suleiman_Leadbitter)\
**Post date:** [July 25, 2019, 7:32pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/19 "2019-07-25T19:32:29Z")

</div>

@texnixe I can create pages but trying to delete them throws this error if this is a helpful clue.

![08](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/dcba6084c862cf5b7c143c52e702d46dba99033b.png)

---

<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:** [July 25, 2019, 7:38pm UTC](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037/20 "2019-07-25T19:38:34Z")

</div>

Yes, that’s what the error messages above already said. It seems as if certain HTTP requests, namely PATCH and DELETE do not work. Different API calls in the Panel use different methods, as you can see here for files for example:

> <https://github.com/getkirby/kirby/blob/master/config/api/routes/files.php>

While a pages create route send a POST request, e.g.

```auto
        'pattern' => 'pages/(:any)/children',
        'method' => 'POST',
        'action' => function (string $id) {
            return $this->page($id)->createChild($this->requestBody());
        }

```

That explains why certain calls work and others don’t.

[Next page](https://forum.getkirby.com/t/typing-and-it-deletes-in-seconds/15037.md?page=2)
