Skip to content

Call to a member function getAppValueString() on null #711

@melroy89

Description

@melroy89

Steps to reproduce

  1. Upgrade to latest NC 33.0.4
  2. Client push plugin also gets updated
  3. Seeing errors in the log

Expected behaviour

No errors..

Actual behaviour

Call to a member function getAppValueString() on null in file '/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php' line 698

Full message:

{"reqId":"hXI96G2RvQXlEgjIsnqw","level":3,"time":"2026-05-29T11:34:57+00:00","remoteAddr":"192.168.1.227","user":"melroy","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","scriptName":"/ocs/v2.php","message":"Call to a member function getAppValueString() on null in file '/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php' line 698","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0","version":"33.0.4.1","exception":{"Exception":"Exception","Message":"Call to a member function getAppValueString() on null in file '/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php' line 698","Code":0,"Trace":[{"file":"/var/www/cloud.melroy.org/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud.melroy.org/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/cloud.melroy.org/html/ocs/v1.php","line":61,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud.melroy.org/html/ocs/v2.php","line":8,"args":["/var/www/cloud.melroy.org/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/cloud.melroy.org/html/lib/private/AppFramework/Http/Dispatcher.php","Line":150,"Previous":{"Exception":"Error","Message":"Call to a member function getAppValueString() on null","Code":0,"Trace":[{"file":"/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php","line":404,"function":"encryptAndSignDelete","class":"OCA\\Notifications\\Push","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php","line":161,"function":"pushDeleteToDevice","class":"OCA\\Notifications\\Push","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud.melroy.org/html/apps/notifications/lib/App.php","line":77,"function":"flushPayloads","class":"OCA\\Notifications\\Push","type":"->"},{"file":"/var/www/cloud.melroy.org/html/lib/private/Notification/Manager.php","line":275,"function":"flush","class":"OCA\\Notifications\\App","type":"->"},{"file":"/var/www/cloud.melroy.org/html/apps/notifications/lib/Controller/EndpointController.php","line":117,"function":"flush","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/cloud.melroy.org/html/lib/private/AppFramework/Http/Dispatcher.php","line":205,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/var/www/cloud.melroy.org/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud.melroy.org/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud.melroy.org/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/cloud.melroy.org/html/ocs/v1.php","line":61,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud.melroy.org/html/ocs/v2.php","line":8,"args":["/var/www/cloud.melroy.org/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php","Line":698},"message":"Call to a member function getAppValueString() on null in file '/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php' line 698","exception":"{\"class\":\"Exception\",\"message\":\"Call to a member function getAppValueString() on null in file '/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php' line 698\",\"code\":0,\"file\":\"/var/www/cloud.melroy.org/html/lib/private/AppFramework/Http/Dispatcher.php:150\",\"trace\":\"#0 /var/www/cloud.melroy.org/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch()\\n#1 /var/www/cloud.melroy.org/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main()\\n#2 /var/www/cloud.melroy.org/html/ocs/v1.php(61): OC\\Route\\Router->match()\\n#3 /var/www/cloud.melroy.org/html/ocs/v2.php(8): require_once('...')\\n#4 {main}\",\"previous\":{\"class\":\"Error\",\"message\":\"Call to a member function getAppValueString() on null\",\"code\":0,\"file\":\"/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php:698\",\"trace\":\"#0 /var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php(404): OCA\\Notifications\\Push->encryptAndSignDelete()\\n#1 /var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php(161): OCA\\Notifications\\Push->pushDeleteToDevice()\\n#2 /var/www/cloud.melroy.org/html/apps/notifications/lib/App.php(77): OCA\\Notifications\\Push->flushPayloads()\\n#3 /var/www/cloud.melroy.org/html/lib/private/Notification/Manager.php(275): OCA\\Notifications\\App->flush()\\n#4 /var/www/cloud.melroy.org/html/apps/notifications/lib/Controller/EndpointController.php(117): OC\\Notification\\Manager->flush()\\n#5 /var/www/cloud.melroy.org/html/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\\Notifications\\Controller\\EndpointController->listNotifications()\\n#6 /var/www/cloud.melroy.org/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController()\\n#7 /var/www/cloud.melroy.org/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch()\\n#8 /var/www/cloud.melroy.org/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main()\\n#9 /var/www/cloud.melroy.org/html/ocs/v1.php(61): OC\\Route\\Router->match()\\n#10 /var/www/cloud.melroy.org/html/ocs/v2.php(8): require_once('...')\\n#11 {main}\"}}","CustomMessage":"Call to a member function getAppValueString() on null in file '/var/www/cloud.melroy.org/html/apps/notifications/lib/Push.php' line 698"},"id":"6a1979f97d78a"}

Server configuration

Web server: Angie

Database: Maria

PHP version: 8.4

Nextcloud version: Nextcloud Hub 26 Winter (33.0.4)

List of activated apps
Enabled:
  - activity: 6.0.0
  - admin_audit: 1.23.0
  - bruteforcesettings: 6.0.0
  - calendar: 6.4.2
  - checksum: 2.1.2
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contacts: 8.5.1
  - contactsinteraction: 1.14.1
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_antivirus: 6.2.0
  - files_downloadlimit: 5.1.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - news: 28.4.1
  - notifications: 6.0.0
  - notify_push: 1.3.3
  - oauth2: 1.21.0
  - password_policy: 5.0.0
  - photos: 6.0.0
  - privacy: 5.0.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recommendations: 6.0.0
  - related_resources: 4.0.0
  - serverinfo: 5.0.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - spreed: 23.0.5
  - survey_client: 5.0.0
  - suspicious_login: 11.0.0
  - systemtags: 1.23.0
  - text: 7.0.1
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0
  - updatenotification: 1.23.0
  - user_status: 1.13.0
  - viewer: 6.0.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - app_api: 33.0.0 (installed 5.0.2)
  - circles: 33.0.0 (installed 28.0.0-dev)
  - dashboard: 7.13.0 (installed 7.0.0)
  - encryption: 2.21.0 (installed 2.0.0)
  - federation: 1.23.0 (installed 1.22.0)
  - files_external: 1.25.1 (installed 1.20.0)
  - files_pdfviewer: 6.0.0 (installed 2.0.1)
  - firstrunwizard: 6.0.0 (installed 5.0.0-dev.0)
  - nextcloud_announcements: 5.0.0 (installed 4.0.0-dev.0)
  - support: 5.0.0 (installed 1.11.0)
  - testing: 1.23.0
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0
  - weather_status: 1.13.0 (installed 1.12.0)
Nextcloud configuration
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "serverid": "16",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.melroy.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "default_timezone": "Europe\/Amsterdam",
        "enable_previews": true,
        "preview_max_x": 2048,
        "preview_max_y": 1850,
        "jpeg_quality": 75,
        "preview_max_filesize_image": 2048,
        "dbtype": "mysql",
        "version": "33.0.4.1",
        "overwrite.cli.url": "https:\/\/cloud.melroy.org\/",
        "mysql.utf8mb4": true,
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "dbindex": 0,
            "timeout": 1.5
        },
        "default_language": "nl",
        "default_locale": "nl_NL",
        "default_phone_region": "NL",
        "mail_sendmailmode": "smtp",
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 2,
        "maintenance": false,
        "theme": "",
        "loglevel": 3,
        "trashbin_retention_obligation": "7,30",
        "updater.release.channel": "stable",
        "skeletondirectory": "",
        "defaultapp": "files",
        "simpleSignUpLink.shown": false,
        "config_preset": 1,
        "app_install_overwrite": [
            "checksum",
            "files_antivirus"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Browser

Browser name: Floorp (Firefox fork)

Browser version: Version 12.14.2@151.0

Operating system: Linux Mint

Browser log
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions