### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, no…t a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on [Github](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR [Nextcloud Community Forum](https://help.nextcloud.com/) _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
After upgrading to NC28, I get 500 errors accessing the settings/admin/logging page
The logs indicate a syntax error

```
{
"reqId": "BtIhSHTQ29Hjm39tZCnW",
"level": 0,
"time": "2023-12-12T16:15:40+00:00",
"remoteAddr": "192.168.9.3",
"user": "cvandesande",
"app": "PHP",
"method": "GET",
"url": "/settings/admin/logging",
"message": "Creation of dynamic property OCA\\FirstRunWizard\\Settings\\Personal::$urlGenerator is deprecated at /usr/share/nginx/html/nextcloud/apps/firstrunwizard/lib/Settings/Personal.php#40",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0",
"version": "28.0.0.11",
"data": {
"app": "PHP"
}
}
{
"reqId": "BtIhSHTQ29Hjm39tZCnW",
"level": 3,
"time": "2023-12-12T16:15:40+00:00",
"remoteAddr": "192.168.9.3",
"user": "cvandesande",
"app": "index",
"method": "GET",
"url": "/settings/admin/logging",
"message": "Syntax error",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0",
"version": "28.0.0.11",
"exception": {
"Exception": "JsonException",
"Message": "Syntax error",
"Code": 4,
"Trace": [
{
"file": "/usr/share/nginx/html/nextcloud/apps/logreader/lib/Service/SettingsService.php",
"line": 52,
"function": "json_decode",
"args": [
"",
null,
512,
4194304
]
},
{
"file": "/usr/share/nginx/html/nextcloud/apps/logreader/lib/Service/SettingsService.php",
"line": 69,
"function": "getRelativeDates",
"class": "OCA\\LogReader\\Service\\SettingsService",
"type": "->",
"args": []
},
{
"file": "/usr/share/nginx/html/nextcloud/apps/logreader/lib/Settings/Admin.php",
"line": 46,
"function": "getAppSettings",
"class": "OCA\\LogReader\\Service\\SettingsService",
"type": "->",
"args": []
},
{
"file": "/usr/share/nginx/html/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php",
"line": 129,
"function": "getForm",
"class": "OCA\\LogReader\\Settings\\Admin",
"type": "->",
"args": []
},
{
"file": "/usr/share/nginx/html/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php",
"line": 86,
"function": "formatSettings",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->",
"args": [
[
[
[
"OCA\\LogReader\\Settings\\Admin"
]
]
]
]
},
{
"file": "/usr/share/nginx/html/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php",
"line": 149,
"function": "getSettings",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->",
"args": [
"logging"
]
},
{
"file": "/usr/share/nginx/html/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php",
"line": 71,
"function": "getIndexResponse",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->",
"args": [
"admin",
"logging"
]
},
{
"file": "/usr/share/nginx/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "index",
"class": "OCA\\Settings\\Controller\\AdminSettingsController",
"type": "->",
"args": [
"logging"
]
},
{
"file": "/usr/share/nginx/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
[
"OCA\\Settings\\Controller\\AdminSettingsController"
],
"index"
]
},
{
"file": "/usr/share/nginx/html/nextcloud/lib/private/AppFramework/App.php",
"line": 184,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
[
"OCA\\Settings\\Controller\\AdminSettingsController"
],
"index"
]
},
{
"file": "/usr/share/nginx/html/nextcloud/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Settings\\Controller\\AdminSettingsController",
"index",
[
"OC\\AppFramework\\DependencyInjection\\DIContainer"
],
[
"logging",
"settings.AdminSettings.index"
]
]
},
{
"file": "/usr/share/nginx/html/nextcloud/lib/base.php",
"line": 1069,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/settings/admin/logging"
]
},
{
"file": "/usr/share/nginx/html/nextcloud/index.php",
"line": 39,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/usr/share/nginx/html/nextcloud/apps/logreader/lib/Service/SettingsService.php",
"Line": 52,
"message": "Syntax error",
"exception": {},
"CustomMessage": "Syntax error"
}
}
```
### Steps to reproduce
1. Upgrade to NC28
2. Add missing DB indexes (May not be required, but were my steps)
3. Access logging page
### Expected behavior
View logs
### Installation method
Community Manual installation with Archive
### Nextcloud Server version
28
### Operating system
None
### PHP engine version
PHP 8.2
### Web server
Nginx
### Database engine version
PostgreSQL
### Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### What user-backends are you using?
- [x] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
```shell
{ig:list systemoud-7788dcd7bf-6rgmb:/usr/share/nginx/html/nextcloud$ php occ conf
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": ["***REMOVED SENSITIVE VALUE***"],
"apps_paths": [
{
"path": "\/usr\/share\/nginx\/html\/nextcloud\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/usr\/share\/nginx\/html\/nextcloud\/custom-apps",
"url": "\/custom-apps",
"writable": true
}
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "28.0.0.11",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR",
"HTTP_X_FORWARDED",
"HTTP_FORWARDED_FOR"
],
"overwriteprotocol": "https",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"installed": true,
"mail_smtpmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"loglevel": 0,
"maintenance": false,
"enable_previews": false,
"secret": "***REMOVED SENSITIVE VALUE***",
"filesystem_check_changes": 1,
"filelocking.enabled": "true",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0,
"dbindex": 0
},
"trashbin_retention_obligation": "auto",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpsecure": "ssl",
"theme": "",
"app_install_overwrite": [
"joplin"
],
"encryption.legacy_format_support": false,
"encryption.key_storage_migrated": false,
"default_language": "en",
"default_phone_region": "CA"
}
}
```
### List of activated Apps
```shell
Enabled:
- activity: 2.20.0
- admin_audit: 1.18.0
- bruteforcesettings: 2.8.0
- calendar: 4.6.0
- cloud_federation_api: 1.11.0
- comments: 1.18.0
- contacts: 5.5.0
- contactsinteraction: 1.9.0
- dav: 1.29.1
- federatedfilesharing: 1.18.0
- federation: 1.18.0
- files: 2.0.0
- files_reminders: 1.1.0
- files_sharing: 1.20.0
- files_trashbin: 1.18.0
- files_versions: 1.21.0
- firstrunwizard: 2.17.0
- logreader: 2.13.0
- lookup_server_connector: 1.16.0
- nextcloud_announcements: 1.17.0
- notes: 4.9.0
- notifications: 2.16.0
- notify_push: 0.6.5
- oauth2: 1.16.3
- password_policy: 1.18.0
- privacy: 1.12.0
- provisioning_api: 1.18.0
- recommendations: 2.0.0
- related_resources: 1.3.0
- serverinfo: 1.18.0
- settings: 1.10.0
- sharebymail: 1.18.0
- support: 1.11.0
- survey_client: 1.16.0
- suspicious_login: 6.0.0
- systemtags: 1.18.0
- text: 3.9.1
- theming: 2.3.0
- twofactor_backupcodes: 1.17.0
- twofactor_nextcloud_notification: 3.8.0
- twofactor_totp: 10.0.0-beta.2
- updatenotification: 1.18.0
- user_status: 1.8.1
- viewer: 2.2.0
- weather_status: 1.8.0
- workflowengine: 2.10.0
Disabled:
- circles: 28.0.0-dev (installed 0.15.2)
- dashboard: 7.8.0 (installed 7.0.0)
- encryption: 2.16.0 (installed 2.5.0)
- files_external: 1.20.0 (installed 1.4.1)
- files_pdfviewer: 2.9.0 (installed 1.2.1)
- files_rightclick: 0.15.1 (installed 1.4.0)
- photos: 2.4.0 (installed 1.3.0)
- user_ldap: 1.19.0
```
### Nextcloud Signing status
_No response_
### Nextcloud Logs
_No response_
### Additional info
_No response_