Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error message when entering a configuration menu #41513

Closed
5 of 8 tasks
muchachagrande opened this issue Nov 15, 2023 · 6 comments · Fixed by #42590
Closed
5 of 8 tasks

[Bug]: Error message when entering a configuration menu #41513

muchachagrande opened this issue Nov 15, 2023 · 6 comments · Fixed by #42590
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug feature: settings

Comments

@muchachagrande
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

When entering "Personal -> Additional configuration" screen there is an error logged "Undefined array key "activeSectionId" at /var/www/nextcloud/apps/settings/templates/settings/frame.php#85"
The page seems to work fine and there is no other symptoms than the one I found in the log.

Steps to reproduce

  1. Log in to admin account
  2. Go to configuration -> personal -> additional configuration menu
  3. Go to the log and see the error

Expected behavior

There should be no error at the log

Installation method

Community VM appliance

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

"system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "27.1.3.2",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": true,
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": "2",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "mail_smtpmode": "smtp",
        "remember_login_cookie_lifetime": "1800",
        "log_rotate_size": "10485760",
        "trashbin_retention_obligation": "auto, 60",
        "versions_retention_obligation": "auto, 180",
        "activity_expire_days": "120",
        "simpleSignUpLink.shown": false,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0.5,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "default_phone_region": "us",
        "logtimezone": "America\/Argentina\/Buenos_Aires",
        "default_language": "es_LA",
        "default_locale": "es_AR",
        "htaccess.RewriteBase": "\/",
        "maintenance": false,
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "knowledgebaseenabled": false,
        "lost_password_link": "disabled",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Krita",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\MSOffice2007",
            "OC\\Preview\\StarOffice",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Font",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\Illustrator",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\Postscript",
            "OC\\Preview\\Epub"
        ],
        "preview_imaginary_url": "http:\/\/127.0.0.1:9001",
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "skeletondirectory": "",
        "theme": "",
        "filesystem_check_changes": true,
        "preview_concurrency_new": "8",
        "preview_concurrency_all": "16",
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "passwords",
            "metadata",
            "maps",
            "extract",
            "cfg_share_links",
            "uppush",
            "integration_libretranslate"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - admin_audit: 1.17.0
  - bookmarks: 13.1.1
  - calendar: 4.5.3
  - cfg_share_links: 4.2.0
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.4.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - extract: 1.3.6
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_external: 1.19.0
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - integration_giphy: 1.0.8
  - integration_libretranslate: 1.1.0
  - integration_openstreetmap: 1.0.6
  - integration_peertube: 1.0.2
  - integration_replicate: 1.0.8
  - integration_tmdb: 1.0.3
  - integration_youtube: 0.1.4
  - keeweb: 0.6.13
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.4.4
  - maps: 1.1.1
  - metadata: 0.19.0
  - nextcloud_announcements: 1.16.0
  - notes: 4.8.1
  - notifications: 2.15.0
  - notify_push: 0.6.5
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - passwords: 2023.11.30
  - phonetrack: 0.7.6
  - photos: 2.3.0
  - picker: 1.0.7
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - qownnotesapi: 23.6.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.2.2
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - sketch_picker: 1.0.1
  - socialsharing_email: 3.0.0
  - spreed: 17.1.2
  - stt_whisper: 1.0.7
  - suspicious_login: 5.0.0
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - text_templates: 1.0.4
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - twofactor_email: 2.7.4
  - twofactor_nextcloud_notification: 3.8.0
  - twofactor_totp: 9.0.0
  - updatenotification: 1.17.0
  - uppush: 1.4.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"e0dNYNVqrENp0T8ugdcz","level":3,"time":"2023-11-15T14:58:26-03:00","remoteAddr":"****REMOVED****","user":"admin","app":"PHP","method":"GET","url":"/settings/user/additional","message":"Undefined array key \"activeSectionId\" at /var/www/nextcloud/apps/settings/templates/settings/frame.php#85","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0","version":"27.1.3.2","data":{"app":"PHP"},"id":"655506c27c5b5"}

Additional info

No response

@muchachagrande muchachagrande added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Nov 15, 2023
@joshtrichards
Copy link
Member

It sounds like you have a very very old app that is still using the legacy forms settings method. That's was replaced in NC12 in #796. What app shows up there?

@muchachagrande
Copy link
Author

Hi @joshtrichards, this is a screenshot of what is on the page in question:

image

It's on the Personal section. As you can see, there is only the personal templates and the global templates.

This is not a very old installation. May be I installed version 24 or 25 and been updating since then.

@joshtrichards
Copy link
Member

Looks like your situation was probably introduced here: nextcloud/text_templates#6

I thought the "additional" approach for Settings was deprecated, but not my area of expertise. Maybe I've misunderstood it.

This will either need to be fixed in Server (if it's supposed to be supported still) or addressed in the text_templates app (if it's not).

@nickvergessen Any insight since you touched both ends of that code?

@nickvergessen
Copy link
Member

This will either need to be fixed in Server (if it's supposed to be supported still)

We just don't recommend it, but it should work, so should be fixed in server.

@nickvergessen
Copy link
Member

Should be a bug from #35609

tcitworld added a commit that referenced this issue Jan 5, 2024
…ined before using them

Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
tcitworld added a commit that referenced this issue Jan 11, 2024
…ined before using them

Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
blizzz pushed a commit that referenced this issue Jan 17, 2024
…ined before using them

Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
@LM1LC3N7
Copy link

Hello,
I have the same bug, is there any way to discover what is the faulty application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug feature: settings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants