Problèmes de synchro : $identifier must not be accessed before initialization

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.10
  • Operating system and version (e.g., Ubuntu 24.04):
    • DEbian 12
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Apache 2.4
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • yesrsterday
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

We could not sync files but could sync directory.

Steps to replicate it (hint: details matter!):

  1. sync files in client 3.16 update

Log entries

{“reqId”:“DWL020DbxzDIvfEruFPI”,“level”:3,“time”:“2025-04-17T16:55:52+00:00”,“remoteAddr”:“92.184.108.182”,“user”:“GCheramy”,“app”:“webdav”,“method”:“GET”,“url”:“/remote.php/dav/files/GCheramy/pathtofileTemplates%20credits.md”,“message”:“Typed property OCA\FilesDownloadActivity\CurrentUser::$identifier must not be accessed before initialization”,“userAgent”:“Mozilla/5.0 (Linux) mirall/3.16.2-20250319.185826.d004c948b-1.0~noble1 (Nextcloud, linuxmint-6.8.0-57-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“30.0.10.1”,“exception”:{“Exception”:“Error”,“Message”:“Typed property OCA\FilesDownloadActivity\CurrentUser::$identifier must not be accessed before initialization”,“Code”:0,“Trace”:[{“file”:“/var/www/mynextcloud/www/apps/files_downloadactivity/lib/Activity/Listener.php”,“line”:67,“function”:“getUserIdentifier”,“class”:“OCA\FilesDownloadActivity\CurrentUser”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/apps/files_downloadactivity/lib/AppInfo/Application.php”,“line”:46,“function”:“readFile”,“class”:“OCA\FilesDownloadActivity\Activity\Listener”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/lib/private/legacy/OC_Hook.php”,“line”:82,“function”:“listenReadFile”,“class”:“OCA\FilesDownloadActivity\AppInfo\Application”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/lib/private/Files/View.php”,“line”:1329,“function”:“emit”,“class”:“OC_Hook”,“type”:“::”},{“file”:“/var/www/mynextcloud/www/lib/private/Files/View.php”,“line”:1192,“function”:“runHooks”,“class”:“OC\Files\View”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/lib/private/Files/View.php”,“line”:1035,“function”:“basicOperation”,“class”:“OC\Files\View”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/apps/dav/lib/Connector/Sabre/File.php”,“line”:454,“function”:“fopen”,“class”:“OC\Files\View”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php”,“line”:85,“function”:“get”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpGet”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/apps/dav/lib/Connector/Sabre/Server.php”,“line”:49,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/apps/dav/lib/Server.php”,“line”:375,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/apps/dav/appinfo/v2/remote.php”,“line”:19,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/mynextcloud/www/remote.php”,“line”:146,“args”:[“/var/www/mynextcloud/www/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/mynextcloud/www/apps/files_downloadactivity/lib/CurrentUser.php”,“Line”:41,“message”:“Typed property OCA\FilesDownloadActivity\CurrentUser::$identifier must not be accessed before initialization”,“exception”:{},“CustomMessage”:“Typed property OCA\FilesDownloadActivity\CurrentUser::$identifier must not be accessed before initialization”}}

Web server / Reverse Proxy

No error in access or error.log

Configuration

Nextcloud

{
“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“domaine1”,
“domaine2”
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “30.0.10.1”,
“overwrite.cli.url”: “https://domaine1”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“maintenance”: false,
“theme”: “”,
“loglevel”: 3,
“app_install_overwrite”: [
“spreed”,
“ocr”
],
“default_phone_region”: “FR”,
“has_rebuilt_cache”: true,
“redis”: “array (host => localhost, port => 6379, timeout => 0, dbindex => 9)”,
“memcache.local”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“mysql.utf8mb4”: true,
“trashbin_retention_obligation”: “60,90”,
“auth.bruteforce.protection.enabled”: false,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “465”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE
}
}

Apps

Enabled:

  • activity: 3.0.0
  • announcementcenter: 7.1.0
  • app_api: 4.0.6
  • appointments: 2.4.3
  • calendar: 5.2.1
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 7.0.6
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • deck: 1.14.4
  • event_update_notification: 2.6.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_automatedtagging: 1.20.0
  • files_downloadactivity: 1.18.0
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_fulltextsearch: 31.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • forms: 5.1.0
  • fulltextsearch_elasticsearch: 30.0.1
  • guests: 4.2.0
  • impersonate: 1.17.1
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 5.0.0
  • maps: 1.5.0
  • nextcloud_announcements: 2.0.0
  • notes: 4.12.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • ownpad: 0.12.0
  • password_policy: 2.0.0
  • photos: 3.0.2
  • polls: 7.4.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • registration: 2.7.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • socialsharing_email: 3.3.0
  • socialsharing_telegram: 3.3.0
  • spreed: 20.1.6
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • text: 4.1.0
  • theming: 2.6.0
  • thesearchpage: 1.2.10
  • timemanager: 0.3.18
  • twofactor_backupcodes: 1.19.0
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • webhook_listeners: 1.1.0-dev
  • whiteboard: 1.0.5
  • workflowengine: 2.12.0
    Disabled:
  • admin_audit: 1.20.0
  • bruteforcesettings: 3.0.0 (installed 2.7.0)
  • encryption: 2.18.0
  • firstrunwizard: 3.0.0 (installed 2.16.0)
  • libresign: 10.7.2 (installed 10.7.2)
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0
  • twofactor_totp: 12.0.0-dev
  • user_ldap: 1.21.0
  • weather_status: 1.10.0 (installed 1.0.0)

Thanks

Please upgrade the files_downloadactivity app to 1.18.1.

@jtr it’s seems to be updated now

# sudo -u www-data php8.2 occ app:list |grep download
  - files_downloadactivity: 1.18.1
  - files_downloadlimit: 3.0.0

Hello, it seems it was a recursion of a share, a shared folder that was already in a shared folder, pretty weird