marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
215 stars 45 forks source link

Error when opening admin settings #483

Closed audioprog closed 2 years ago

audioprog commented 2 years ago

System Information

Linux 5.10.60-qnap x86_64 Prozessor: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz (4 cores) RAM: 7.67 GB

 Run "php ./occ passwords:system:report debug" in your Nextcloud install directory and put the output here

{
    "version": {
        "server": "23.0.2.1",
        "app": "2022.2.22",
        "lsr": false,
        "php": "8.0.16",
        "cronPhp": "8.0.16"
    },
    "environment": {
        "os": "Linux",
        "architecture": "x86_64",
        "bits": 64,
        "database": "mysql",
        "cron": "webcron",
        "proxy": false,
        "sslProxy": true,
        "subdirectory": false
    },
    "services": {
        "images": "imagick",
        "favicons": "default",
        "previews": "default",
        "security": "hibp",
        "words": "auto",
        "previewApi": false,
        "faviconApi": false
    },
    "status": {
        "autoBackupRestored": false
    },
    "settings": {
        "channel": "stable",
        "nightlies": false,
        "handbook": true,
        "performance": 5
    },
    "encryption": {
        "sse": {
            "SSEv1r1": false,
            "SSEv1r2": true,
            "SSEv2r1": false,
            "none": false,
            "default": "SSEv1r2"
        },
        "cse": {
            "CSEv1r1": false,
            "none": true,
            "default": "none"
        }
    }
}

Steps to reproduce

  1. Click in Admin Setup on Passwords Settings

Expected result

Show the settings

Actual result

Internal Server Error

Nextcloud log

Nextcloud log ``` {"reqId":"PPm8cuce4Z1vJtWkRdGD","level":3,"time":"2022-02-22T14:39:32+00:00","remoteAddr":"87.160.121.108","user":"leonhard.suckau","app":"index","method":"GET","url":"/settings/admin/passwords","message":"Call to a member function renderAs() on null in file '/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php' line 130","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0","version":"23.0.2.1","exception":{"Exception":"Exception","Message":"Call to a member function renderAs() on null in file '/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php' line 130","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AdminSettingsController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AdminSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"passwords","_route":"settings.AdminSettings.index"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/admin/passwords"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"Error","Message":"Call to a member function renderAs() on null","Code":0,"Trace":[{"file":"/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php","line":83,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->","args":[{"0":[{"__class__":"OCA\\Passwords\\Settings\\AdminSettings"}],"10":[{"__class__":"OCA\\PasswordsHandbook\\Settings\\AdminSettings"}]}]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":140,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->","args":["passwords"]},{"file":"/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->","args":["admin","passwords"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->","args":["passwords"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AdminSettingsController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\AdminSettingsController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\AdminSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"passwords","_route":"settings.AdminSettings.index"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/admin/passwords"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","Line":130},"CustomMessage":"--"},"id":"6214f5b003fc7"} ```

Browser log

Browser log ``` GEThttps://cloud.xxxxxxx.de/settings/admin/passwords [[HTTP/2 500 Internal Server Error 1887ms]]() No OC found [index.js:46:12](webpack:///node_modules/@nextcloud/l10n/dist/index.js) Proxying an event bus of version 2.1.1 with 1.3.0 [index.es.js:2337:14](webpack:///node_modules/@nextcloud/auth/node_modules/@nextcloud/event-bus/dist/index.es.js) JQMIGRATE: Migrate is installed, version 3.3.2 [jquery-migrate.min.js:2:708](webpack:///node_modules/jquery-migrate/dist/jquery-migrate.min.js) jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. [globals.js:62:15](webpack:///core/src/globals.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. [globals.js:62:15](webpack:///core/src/globals.js) jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 8 [globals.js:62:15](webpack:///core/src/globals.js) Proxying an event bus of version 2.1.1 with 1.3.0 [index.es.js:2337:14](webpack:///node_modules/@nextcloud/auth/node_modules/@nextcloud/event-bus/dist/index.es.js) OCA.Comments.View initialized [comments-app.js:32:8](webpack:///apps/comments/src/comments-app.js) Uncaught TypeError: r is undefined r index.js:178 main.js:25 main.js:196 main.js:196 [index.js:178:44](webpack:///node_modules/@nextcloud/router/dist/index.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. [globals.js:62:15](webpack:///core/src/globals.js) jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 56 [globals.js:62:15](webpack:///core/src/globals.js) session heartbeat polling started [session-heartbeat.js:101:9](webpack:///core/src/session-heartbeat.js) $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 6 [globals.js:62:15](webpack:///core/src/globals.js) Uncaught TypeError: n is undefined _updateApiField admin.js:1 initialize admin.js:1 admin.js:1 jQuery 9 admin.js:1 admin.js:1 admin.js:1 [admin.js:1:28014](https://cloud.xxxxx.de/custom_apps/passwords/js/Static/admin.js?v=xxxxxxx-8) jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 28 [globals.js:62:15](webpack:///core/src/globals.js) ```
marius-wieschollek commented 2 years ago

This bug should be fixed in the latest version of the passwords app and the passwords handbook app.