# Hedgedoc install error: "Config panel question 'allow\_anonymous' should be initialized with a value during install or upgrade."

**URL:** https://forum.yunohost.org/t/hedgedoc-install-error-config-panel-question-allow-anonymous-should-be-initialized-with-a-value-during-install-or-upgrade/25977
**Category:** Support apps
**Tags:** hedgedoc, english
**Created:** [August 13, 2023, 8:28pm UTC](https://forum.yunohost.org/t/hedgedoc-install-error-config-panel-question-allow-anonymous-should-be-initialized-with-a-value-during-install-or-upgrade/25977 "2023-08-13T20:28:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arpy](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@arpy](https://forum.yunohost.org/u/arpy)
#### Post date: [August 13, 2023, 8:28pm UTC](https://forum.yunohost.org/t/hedgedoc-install-error-config-panel-question-allow-anonymous-should-be-initialized-with-a-value-during-install-or-upgrade/25977/1 "2023-08-13T20:28:41Z")

</div>

### My YunoHost server

**Hardware:** eeePC 1005HA  
**YunoHost version:** 11.2.3  
**I have access to my server :**  
✅ Through SSH  
✅ Through the webadmin  
✅ Direct access via keyboard / screen  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no  
**If your request is related to an app, specify its name and version:** Hedgedoc 1.9.8~ynh2

### Description of my issue

After installing Hedgedoc 1.9.8-ynh2, an error is displayed on its page in the admin panel:

```plaintext
An error prevents the configuration panel from being displayed:
Config panel question 'allow_anonymous' should be initialized with a value during install or upgrade.
Please report this error to the YunoHost team to get it fixed!

```

[These are the settings](https://docs.hedgedoc.org/configuration/#users-and-privileges) it refers to. Editing `/var/www/hedgedoc/config.json` and restarting Hedgedoc doesn’t get rid of the warning. (This is expected, because it says the problem is the _initial_ configuration, but I thought I’d try anyway.)

The [Yunohost install script](https://github.com/YunoHost-Apps/hedgedoc_ynh/blob/ad5906ee65056da0b81e59957e6dbf877ad61cf5/scripts/install#L16) seems to set `allow_anonymous`:

```plaintext
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================

allow_anonymous=false
allow_anonymous_edits=false
allow_email_registration=false
allow_free_url=false
require_free_url_authentication=false

#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================

ynh_app_setting_set --app=$app --key=allow_anonymous --value=$allow_anonymous
ynh_app_setting_set --app=$app --key=allow_email_registration --value=$allow_email_registration
ynh_app_setting_set --app=$app --key=allow_free_url --value=$allow_free_url
ynh_app_setting_set --app=$app --key=require_free_url_authentication --value=$require_free_url_authentication
ynh_app_setting_set --app=$app --key=allow_anonymous_edits --value=$allow_anonymous_edits

```

Should it ask the admin to set the configuration value in [the manifest file](https://github.com/YunoHost-Apps/hedgedoc_ynh/blob/ad5906ee65056da0b81e59957e6dbf877ad61cf5/manifest.toml), when it asks for default permissions, the install directory, etc.?

The app itself works fine, and an admin can still change the user and privileges settings by editing the config file. It’s just that the configuration panel does not show in the Yunohost admin back-end.

Thanks very much for your help!

---

<div class="post-metadata">

### Author: ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)
#### Post date: [August 13, 2023, 8:59pm UTC](https://forum.yunohost.org/t/hedgedoc-install-error-config-panel-question-allow-anonymous-should-be-initialized-with-a-value-during-install-or-upgrade/25977/2 "2023-08-13T20:59:47Z")

</div>

1.9.9 should fix the issue

---

<div class="post-metadata">

### Author: ![Lapineige](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@Lapineige](https://forum.yunohost.org/u/Lapineige)
#### Post date: [August 13, 2023, 11:07pm UTC](https://forum.yunohost.org/t/hedgedoc-install-error-config-panel-question-allow-anonymous-should-be-initialized-with-a-value-during-install-or-upgrade/25977/3 "2023-08-13T23:07:37Z")

</div>

It was fixed a few hours ago, you should receive it soon 🙂

---

<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: [August 28, 2023, 11:08pm UTC](https://forum.yunohost.org/t/hedgedoc-install-error-config-panel-question-allow-anonymous-should-be-initialized-with-a-value-during-install-or-upgrade/25977/4 "2023-08-28T23:08:35Z")

</div>

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