# No app settings for Grav

**URL:** <https://forum.yunohost.org/t/no-app-settings-for-grav/27409>\
**Category:** Support apps\
**Tags:** grav, french, english\
**Created:** [November 30, 2023, 1:11pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409 "2023-11-30T13:11:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [November 30, 2023, 1:11pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/1 "2023-11-30T13:11:24Z")

</div>

### My YunoHost server

**Hardware:** VPS bought online  
**YunoHost version:** 11.2.7  
**I have access to my server :** Through SSH | through the webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : yes  
**If yes, please explain:** Have change the url few times for this app, and have done a `www` redirect  
**If your request is related to an app, specify its name and version:** grav 1.7.42.3~ynh1

### Description of my issue

Hello,  
I have an unexpected issue on a grav site,. In the webadmin, I can’t acces to the settings…

Here a screenshot

 ![Capture d’écran du 2023-11-30 04-10-44](https://forum.yunohost.org/uploads/default/original/2X/e/edbc69b8828f19108b3540e5c5af40d91b05a39d.png)

This problem was here before I have also change the URL this app on the root `domain.tld`. I have also a redirect app redirecting `www` to `domain.tld`. before change\_url to root path, the app was on a subpath `domain.tld/grav` and I have do a `mark_as_default` redirection to the `/`.

Now I want to keep the app on the default domain `domain.tld` and try to `mark_as_default`, I can’t do it now, there is an error trying doing this…  
What can I do to repair this ??

* * *

### Mon serveur YunoHost

**Matériel:** VPS acheté en ligne  
**Version de YunoHost:** 11.2.7  
**J’ai accès à mon serveur :** En SSH | Par la webadmin  
**Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ?** : oui  
**Si oui, expliquer:** Changer l’url plusieurs fois sur cette app, ajout d’une redirection `www` vers l’app  
**Si votre requête est liée à une application, précisez son nom et sa version:** app v1.0~ynh1

### Description du problème

Hello,  
j’ai une drôle de problème sur un site grav. Dans la webadmin webadmin, je ne peux pas accéder aux configurations et un encart d’erreur.

(voir capture ci-dessus)

Ce problème était visible avant que je change l’URL du site vers le domaine par défaut root `domain.tld`. J’ai aussi une app redirect pour rediriger `www` vers `domain.tld`. Anvant de changer l’URL vers le root path, le site était dans un subpath `domain.tld/grav` et j’avais mis en place une redirection `mark_as_default` vers le root `/`.

Comment réparer tout cela ?? J’aimerai laisser le site sur le root path, domaine par défaut et ajouter un `mark_as_default`

Now I want to keep the app on the default domain `domain.tld` and try to `mark_as_default`, I can’t do it now, there is an error trying doing this…  
What can I do to repair this ??

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [November 30, 2023, 1:34pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/2 "2023-11-30T13:34:36Z")

</div>

This could help ! I have another grav `grav__2` with the same problem on another soubdomain `grav2.domain.tld`.

But on a new fresh install with a third grav, `grav__3` it is ok for the settings…

So, can I backup the dbb, install new ones and move the dbb inside ?? perhaps …

---

<div class="post-metadata">

**Author:** ![Mamie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mamie/32/1245_2.png) [@Mamie](https://forum.yunohost.org/u/Mamie)\
**Post date:** [November 30, 2023, 2:44pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/3 "2023-11-30T14:44:34Z")

</div>

The other installations are from version older than april 27 2023 ?  
There was this commit : [Fix PHP-FPM settings: init variables upon install · YunoHost-Apps/grav\_ynh@c744b47 · GitHub](https://github.com/YunoHost-Apps/grav_ynh/commit/c744b47ccf8a6cfe94a8ebec00c9e7af9f3f38f9)  
And from what I guess, it should be `0` and not `"0"` (according to other files from other apps)

Maybe you can try to force the parameter in command line :  
`sudo yunohost app config set grav main.php_fpm_config.fpm_free_footprint: -v 0`

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [November 30, 2023, 4:10pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/4 "2023-11-30T16:10:15Z")

</div>

Yes the version are from older versions…  
the key is not found

```auto
sudo yunohost app config set grav main.php_fpm_config.fpm_free_footprint: -v 0
Error: The filter key 'main.php_fpm_config.fpm_free_footprint:' is incorrect.

```

```auto
yunohost app config get grav
Error: Config panel question 'fpm_free_footprint' should be initialized with a value during install or upgrade.

```

I also try other commands like `yunohost app config set grav main.php_fpm_config.fpm_free_footprint -v 0` or `-v "0"`

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [November 30, 2023, 4:43pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/5 "2023-11-30T16:43:09Z")

</div>

J’essaie aussi de forces une réinstallation, mais toujours la même erreur ! Au cas ou ça aide, je partage après un `yunohost app upgrade grav --force --debug` le log ici

[https://paste.yunohost.org/raw/iwulozujof](https://paste.yunohost.org/raw/iwulozujof)

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [November 30, 2023, 5:41pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/6 "2023-11-30T17:41:06Z")

</div>

Ok I found a solution ! conected with root

```auto
source /usr/share/yunohost/helpers
app=grav
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value="0"
+ app=grav
+ [[fpm_free_footprint =~ (unprotected|protected|skipped)_]]
+ ynh_app_setting set grav fpm_free_footprint 0
+ set +o xtrace

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [December 15, 2023, 5:42pm UTC](https://forum.yunohost.org/t/no-app-settings-for-grav/27409/7 "2023-12-15T17:42:02Z")

</div>

Closed on December 15, 2023, 5:42pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
