---
title: 'Clearing of the page content while editing in admin plugin in the Grav 2.0'
url: 'https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394'
markdown: 'https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394.md'
date: '2026-06-21'
description: 'After successfully upgrading from Grav 1.7 to Grav 2.0, I noticed an annoying feature of version 2.0: page reloads while editing. In version Grav v2.0.17,'
---

[Plugins](https://getgrav.org/forum/plugins)

#   Clearing of the page content while editing in admin plugin in the Grav 2.0 

 [admin](https://getgrav.org/forum/tag/admin) [plugin](https://getgrav.org/forum/tag/plugin)

 Solved by pamtbaau [View solution](https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394#post-41828)

  Started by Vladimir Novak 2 months ago · 3 replies · 760 views    

 [2 months ago](https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394#post-41824 "Permalink") 

After successfully upgrading from Grav 1.7 to Grav 2.0, I noticed an annoying feature of version 2.0: page reloads while editing.

In version Grav v2.0.17, Admin v2.0.19 after 53 minutes after page creation all entered text of the page is cleared and "Save" button is inactive (grayed out). As far as I remember, in version 1.7, after a period of inactivity, I was redirected to the login page, and I clicked "back" and copy text to clipboard and paste it to the same article after the login. Now in version Grav 2 all content is completely vanished during editing.

Please, make improvement in future version not to reload page after 53 minutes.

 [2 months ago](https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394#post-41825 "Permalink") 

it should not be reloading and losing your edits, please report this issue here: <https://github.com/getgrav/grav-plugin-admin2/issues>

 [2 months ago](https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394#post-41826 "Permalink") 

Andy, I found that in Grav 2.0 there must be file in the folder /user/config , the file named **"admin-next.yaml**" with user rights 600.

On my production site there is no file **"admin-next.yaml**", because the last steps of migration was not performed accordingly.

My unsaved edits is lost due to absence of this file:

./grav/user/config/admin-next.yaml

or if file exist, the value of the parameter is wrong:

settings:

```
autoSaveEnabled: false
```

The cause of the problem: parameter "autoSaveEnabled:" - must be "true"!!!

If file admin-next.yaml non-existent or autoSaveEnabled: false, after 50 minutes article text is cleared. I tested this on local web site.

Solution is to copy file "admin-next.yaml" to its place ./grav/user/config/ and change text in it:
settings:

```
autoSaveEnabled: true
```

Or in Grav 2.0 - left sidebar, click link "Settings" - menu "Site Defaults" - chapter "Editing" - parameter **"Auto save**" (default was: Off) !

Changed this parameter "Auto-Save" to "**On**". Clicked button "**Save site defaults**".
Now all text of the article is written to the file as I enter or edit it.

Thanks for your answer!

last edited 08/11/26 by Vladimir Novak

 [2 months ago](https://getgrav.org/forum/plugins/clearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394#post-41828 "Permalink")  Solution 

Fixed in next version of Admin2: <https://github.com/getgrav/grav-plugin-admin2/issues/156>

NB. Using setting `autosave` hides the issue behind the lost changes.

last edited 08/12/26 by pamtbaau

[Log in](https://getgrav.org/login?return=%2Fforum%2Fplugins%2Fclearing-of-the-page-content-while-editing-in-admin-plugin-in-the-grav-2-0-t9394) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [grav-mcp update\_page sends lang in the body instead of the query string, so non-default languages are never updated](https://getgrav.org/forum/plugins/grav-mcp-update-page-sends-lang-in-the-body-instead-of-the-query-string-so-non-default-languages-are-never-updated-t9469)    [Plugins](https://getgrav.org/forum/plugins) · by renedebaaij, 2 days ago |  | 0 | 36 | [2 days ago](https://getgrav.org/forum/plugins/grav-mcp-update-page-sends-lang-in-the-body-instead-of-the-query-string-so-non-default-languages-are-never-updated-t9469 "by renedebaaij") |
| [How to clone a flex object in twig](https://getgrav.org/forum/plugins/how-to-clone-a-flex-object-in-twig-t9438)    [Plugins](https://getgrav.org/forum/plugins) · by complanar, 3 weeks ago |  | 6 | 389 | [2 weeks ago](https://getgrav.org/forum/plugins/how-to-clone-a-flex-object-in-twig-t9438 "by complanar") |
| [Integration of GRAV articles into my principal website](https://getgrav.org/forum/plugins/integration-of-grav-articles-into-my-principal-website-t9440)    [Plugins](https://getgrav.org/forum/plugins) · by BenLaKnet, 2 weeks ago |  | 1 | 206 | [2 weeks ago](https://getgrav.org/forum/plugins/integration-of-grav-articles-into-my-principal-website-t9440 "by BenLaKnet") |
| [How to restrict access of admin users to certain subpages](https://getgrav.org/forum/plugins/how-to-restrict-access-of-admin-users-to-certain-subpages-t9416)    [Plugins](https://getgrav.org/forum/plugins) · by complanar, 1 month ago |  | 2 | 480 | [4 weeks ago](https://getgrav.org/forum/plugins/how-to-restrict-access-of-admin-users-to-certain-subpages-t9416 "by complanar") |
| [Storing Flex-Objects at the page level](https://getgrav.org/forum/plugins/storing-flex-objects-at-the-page-level-t9388)    [Plugins](https://getgrav.org/forum/plugins) · by Mathieu Lecouturier, 3 months ago |  | 3 | 595 | [2 months ago](https://getgrav.org/forum/plugins/storing-flex-objects-at-the-page-level-t9388 "by Gez") |
