### ⚠️ 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 _(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] Maps app **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
I seem to get an error at creation, update and deletion of a contact if the map app if enabled. This is a non blocking error, meaning data are still saved, but there are errors logs from the map app each time I edit a contact.
### Steps to reproduce
1. Enable both `contacts` and `maps` apps
2. Create a contact, delete andor update it
3. Check logs for a PHP error
### Expected behavior
No errors should occurs
### Installation method
Manual installation
### Operating system
Debian/Ubuntu
### PHP engine version
PHP 8.1
### Web server
Apache (supported)
### Database engine version
MySQL
### Is this bug present after an update or on a fresh install of the server?
Fresh Nextcloud Server install
### Is this bug present after an update or on a fresh install of the app?
Fresh Nextcloud Maps install (never installed before)
### 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
root@4af7cf9a8445:/var/www/html# sudo -u www-data php occ config:list system
{
"system": {
"debug": true,
"profiler": true,
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/apps-extra",
"url": "\/apps-extra",
"writable": false
},
{
"path": "\/var\/www\/html\/apps-writable",
"url": "\/apps-writable",
"writable": true
}
],
"allow_local_remote_servers": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "1025",
"skeletondirectory": "\/skeleton",
"loglevel": 2,
"log_query": false,
"query_log_file": "\/var\/www\/html\/data\/query.log",
"diagnostics.logging": false,
"diagnostics.logging.threshold": 0,
"log.condition": {
"apps": [
"diagnostics",
"admin_audit"
]
},
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"nextcloud",
"nextcloud.local",
"192.168.21.6",
"localhost"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "26.0.0.0",
"overwrite.cli.url": "http:\/\/nextcloud.local",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis"
}
}
```
### List of activated Apps
```shell
root@4af7cf9a8445:/var/www/html# sudo -u www-data php occ app:list
Enabled:
- activity: 2.18.0
- admin_audit: 1.16.0
- calendar: 4.0.0-alpha.2
- cloud_federation_api: 1.9.0
- comments: 1.16.0
- contacts: 5.1.0-alpha.1
- contactsinteraction: 1.7.0
- dashboard: 7.6.0
- dav: 1.25.0
- federatedfilesharing: 1.16.0
- federation: 1.16.0
- files: 1.21.0
- files_pdfviewer: 2.7.0
- files_sharing: 1.18.0
- files_trashbin: 1.16.0
- files_versions: 1.19.0
- logreader: 2.11.0
- lookup_server_connector: 1.14.0
- maps: 0.2.1
- oauth2: 1.14.0
- profiler: 1.2.0
- provisioning_api: 1.16.0
- recommendations: 1.5.0
- settings: 1.8.0
- sharebymail: 1.16.0
- systemtags: 1.16.0
- theming: 2.1.0
- twofactor_backupcodes: 1.15.0
- updatenotification: 1.16.0
- user_status: 1.6.0
- viewer: 1.10.0
- weather_status: 1.6.0
- workflowengine: 2.8.0
Disabled:
- encryption
- files_external
- testing
- user_ldap
```
### Nextcloud Signing status
```shell
Integrity checker has been disabled. Integrity cannot be verified.
This is a local installation, based on https://github.com/juliushaertl/nextcloud-docker-dev repository, which is configured for development purpose. apps are cloned from git repository
```
### Nextcloud Logs
```shell
{"reqId":"8IlbAnP10dwfouD90SxM","level":3,"time":"2022-10-05T19:42:42+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"PHP","method":"DELETE","url":"/remote.php/dav/addressbooks/users/admin/contacts/42EA015B-F98A-4A47-9418-4499CD07625F.vcf","message":"Attempt to read property \"uri\" on array at /var/www/html/apps-extra/maps/lib/Listener/CardDeletedListener.php#53","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"26.0.0.0","exception":{"Exception":"Error","Message":"Attempt to read property \"uri\" on array at /var/www/html/apps-extra/maps/lib/Listener/CardDeletedListener.php#53","Code":0,"Trace":[{"file":"/var/www/html/apps-extra/maps/lib/Listener/CardDeletedListener.php","line":53,"function":"onAll","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Attempt to read property \"uri\" on array","/var/www/html/apps-extra/maps/lib/Listener/CardDeletedListener.php",53]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OCA\\Maps\\Listener\\CardDeletedListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardDeletedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardDeletedEvent"},"OCA\\DAV\\Events\\CardDeletedEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"OCA\\DAV\\Events\\CardDeletedEvent",{"__class__":"OCA\\DAV\\Events\\CardDeletedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardDeletedEvent"},"OCA\\DAV\\Events\\CardDeletedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\DAV\\Events\\CardDeletedEvent",{"__class__":"OCA\\DAV\\Events\\CardDeletedEvent"}]},{"file":"/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php","line":763,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardDeletedEvent"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Card.php","line":106,"function":"deleteCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":[1,"42EA015B-F98A-4A47-9418-4499CD07625F.vcf"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":179,"function":"delete","class":"Sabre\\CardDAV\\Card","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":281,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->","args":["addressbooks/users/admin/contacts/42EA015B-F98A-4A47-9418-4499CD07625F.vcf"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:DELETE",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":99,"CustomMessage":"--"}}
{"reqId":"bzPSUo3okSPRAOCcsD3R","level":3,"time":"2022-10-05T19:42:51+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"PHP","method":"PUT","url":"/remote.php/dav/addressbooks/users/admin/contacts/1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","message":"Attempt to read property \"uri\" on array at /var/www/html/apps-extra/maps/lib/Listener/CardCreatedListener.php#53","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"26.0.0.0","exception":{"Exception":"Error","Message":"Attempt to read property \"uri\" on array at /var/www/html/apps-extra/maps/lib/Listener/CardCreatedListener.php#53","Code":0,"Trace":[{"file":"/var/www/html/apps-extra/maps/lib/Listener/CardCreatedListener.php","line":53,"function":"onAll","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Attempt to read property \"uri\" on array","/var/www/html/apps-extra/maps/lib/Listener/CardCreatedListener.php",53]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OCA\\Maps\\Listener\\CardCreatedListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"},"OCA\\DAV\\Events\\CardCreatedEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"OCA\\DAV\\Events\\CardCreatedEvent",{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"},"OCA\\DAV\\Events\\CardCreatedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\DAV\\Events\\CardCreatedEvent",{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php","line":673,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/AddressBook.php","line":144,"function":"createCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":[1,"1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:-//Nextcloud Contacts v5.1.0-alpha1\r\nUID:e09a5cf8-b347-4a8f-9e01-949cec28f209\r\nFN:User\r\nADR;TYPE=HOME:;;;;;;\r\nEMAIL;TYPE=HOME:\r\nTEL;TYPE=HOME,VOICE:\r\nREV;VALUE=DATE-AND-OR-TIME:20221005T194251Z\r\nEND:VCARD"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"Sabre\\CardDAV\\AddressBook","type":"->","args":["1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:-//Nextcloud Contacts v5.1.0-alpha1\r\nUID:e09a5cf8-b347-4a8f-9e01-949cec28f209\r\nFN:User\r\nADR;TYPE=HOME:;;;;;;\r\nEMAIL;TYPE=HOME:\r\nTEL;TYPE=HOME,VOICE:\r\nREV;VALUE=DATE-AND-OR-TIME:20221005T194251Z\r\nEND:VCARD"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["addressbooks/users/admin/contacts/1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:-//Nextcloud Contacts v5.1.0-alpha1\r\nUID:e09a5cf8-b347-4a8f-9e01-949cec28f209\r\nFN:User\r\nADR;TYPE=HOME:;;;;;;\r\nEMAIL;TYPE=HOME:\r\nTEL;TYPE=HOME,VOICE:\r\nREV;VALUE=DATE-AND-OR-TIME:20221005T194251Z\r\nEND:VCARD",null]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":99,"CustomMessage":"--"}}
{"reqId":"bzPSUo3okSPRAOCcsD3R","level":3,"time":"2022-10-05T19:42:51+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"webdav","method":"PUT","url":"/remote.php/dav/addressbooks/users/admin/contacts/1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","message":"This parser can only read from strings or streams.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"26.0.0.0","exception":{"Exception":"InvalidArgumentException","Message":"This parser can only read from strings or streams.","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/sabre/vobject/lib/Parser/MimeDir.php","line":83,"function":"setInput","class":"Sabre\\VObject\\Parser\\MimeDir","type":"->","args":[[16,"1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf",1664998971,"\"8bdf896d7de86ab6eea3d024e9094bd9\"",237,"And 2 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/3rdparty/sabre/vobject/lib/Reader.php","line":47,"function":"parse","class":"Sabre\\VObject\\Parser\\MimeDir","type":"->","args":[[16,"1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf",1664998971,"\"8bdf896d7de86ab6eea3d024e9094bd9\"",237,"And 2 more entries, set log level to debug to see all entries"],0]},{"file":"/var/www/html/apps-extra/maps/lib/Service/AddressService.php","line":223,"function":"read","class":"Sabre\\VObject\\Reader","type":"::","args":[[16,"1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf",1664998971,"\"8bdf896d7de86ab6eea3d024e9094bd9\"",237,"And 2 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/apps-extra/maps/lib/Listener/CardCreatedListener.php","line":54,"function":"scheduleVCardForLookup","class":"OCA\\Maps\\Service\\AddressService","type":"->","args":[[16,"1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf",1664998971,"\"8bdf896d7de86ab6eea3d024e9094bd9\"",237,"And 2 more entries, set log level to debug to see all entries"],null]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OCA\\Maps\\Listener\\CardCreatedListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"},"OCA\\DAV\\Events\\CardCreatedEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"OCA\\DAV\\Events\\CardCreatedEvent",{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"},"OCA\\DAV\\Events\\CardCreatedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\DAV\\Events\\CardCreatedEvent",{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php","line":673,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/AddressBook.php","line":144,"function":"createCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":[1,"1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:-//Nextcloud Contacts v5.1.0-alpha1\r\nUID:e09a5cf8-b347-4a8f-9e01-949cec28f209\r\nFN:User\r\nADR;TYPE=HOME:;;;;;;\r\nEMAIL;TYPE=HOME:\r\nTEL;TYPE=HOME,VOICE:\r\nREV;VALUE=DATE-AND-OR-TIME:20221005T194251Z\r\nEND:VCARD"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"Sabre\\CardDAV\\AddressBook","type":"->","args":["1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:-//Nextcloud Contacts v5.1.0-alpha1\r\nUID:e09a5cf8-b347-4a8f-9e01-949cec28f209\r\nFN:User\r\nADR;TYPE=HOME:;;;;;;\r\nEMAIL;TYPE=HOME:\r\nTEL;TYPE=HOME,VOICE:\r\nREV;VALUE=DATE-AND-OR-TIME:20221005T194251Z\r\nEND:VCARD"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["addressbooks/users/admin/contacts/1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:-//Nextcloud Contacts v5.1.0-alpha1\r\nUID:e09a5cf8-b347-4a8f-9e01-949cec28f209\r\nFN:User\r\nADR;TYPE=HOME:;;;;;;\r\nEMAIL;TYPE=HOME:\r\nTEL;TYPE=HOME,VOICE:\r\nREV;VALUE=DATE-AND-OR-TIME:20221005T194251Z\r\nEND:VCARD",null]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/3rdparty/sabre/vobject/lib/Parser/MimeDir.php","Line":135,"message":"This parser can only read from strings or streams.","exception":{},"CustomMessage":"This parser can only read from strings or streams."}}
{"reqId":"0PYsUZHmr4A5G20tz8oY","level":3,"time":"2022-10-05T19:49:02+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"PHP","method":"PUT","url":"/remote.php/dav/addressbooks/users/admin/contacts/1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","message":"Attempt to read property \"uri\" on array at /var/www/html/apps-extra/maps/lib/Listener/CardUpdatedListener.php#53","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"26.0.0.0","exception":{"Exception":"Error","Message":"Attempt to read property \"uri\" on array at /var/www/html/apps-extra/maps/lib/Listener/CardUpdatedListener.php#53","Code":0,"Trace":[{"file":"/var/www/html/apps-extra/maps/lib/Listener/CardUpdatedListener.php","line":53,"function":"onAll","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Attempt to read property \"uri\" on array","/var/www/html/apps-extra/maps/lib/Listener/CardUpdatedListener.php",53]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OCA\\Maps\\Listener\\CardUpdatedListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"},"OCA\\DAV\\Events\\CardUpdatedEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"OCA\\DAV\\Events\\CardUpdatedEvent",{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"},"OCA\\DAV\\Events\\CardUpdatedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\DAV\\Events\\CardUpdatedEvent",{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php","line":732,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Card.php","line":94,"function":"updateCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"Sabre\\CardDAV\\Card","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":99,"CustomMessage":"--"}}
{"reqId":"0PYsUZHmr4A5G20tz8oY","level":3,"time":"2022-10-05T19:49:02+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"webdav","method":"PUT","url":"/remote.php/dav/addressbooks/users/admin/contacts/1B2D36D9-66CF-447F-AB61-99F63CC5C862.vcf","message":"This parser can only read from strings or streams.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"26.0.0.0","exception":{"Exception":"InvalidArgumentException","Message":"This parser can only read from strings or streams.","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/sabre/vobject/lib/Parser/MimeDir.php","line":83,"function":"setInput","class":"Sabre\\VObject\\Parser\\MimeDir","type":"->","args":[[16,"*** sensitive parameters replaced ***",1664999342,"\"73c141c4925effaf5d2382da0d764e2d\"",1090188,"And 2 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/3rdparty/sabre/vobject/lib/Reader.php","line":47,"function":"parse","class":"Sabre\\VObject\\Parser\\MimeDir","type":"->","args":[[16,"*** sensitive parameters replaced ***",1664999342,"\"73c141c4925effaf5d2382da0d764e2d\"",1090188,"And 2 more entries, set log level to debug to see all entries"],0]},{"file":"/var/www/html/apps-extra/maps/lib/Service/AddressService.php","line":223,"function":"read","class":"Sabre\\VObject\\Reader","type":"::","args":[[16,"*** sensitive parameters replaced ***",1664999342,"\"73c141c4925effaf5d2382da0d764e2d\"",1090188,"And 2 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/apps-extra/maps/lib/Listener/CardUpdatedListener.php","line":54,"function":"scheduleVCardForLookup","class":"OCA\\Maps\\Service\\AddressService","type":"->","args":[[16,"*** sensitive parameters replaced ***",1664999342,"\"73c141c4925effaf5d2382da0d764e2d\"",1090188,"And 2 more entries, set log level to debug to see all entries"],"*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OCA\\Maps\\Listener\\CardUpdatedListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"},"OCA\\DAV\\Events\\CardUpdatedEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"OCA\\DAV\\Events\\CardUpdatedEvent",{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"},"OCA\\DAV\\Events\\CardUpdatedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\DAV\\Events\\CardUpdatedEvent",{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php","line":732,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardUpdatedEvent"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/Card.php","line":94,"function":"updateCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"Sabre\\CardDAV\\Card","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/3rdparty/sabre/vobject/lib/Parser/MimeDir.php","Line":135,"message":"This parser can only read from strings or streams.","exception":{},"CustomMessage":"This parser can only read from strings or streams."}}
```
### Browser Console
_No response_
### Additional info
Looking at `CardDeletedListener`, `CardCreatedListener` and `CardUpdatedListener`, it seems we get an array and try to access it with `->` notation instead of array notation.
If I explicitly cast the array as object, the error seems to vanish
```php
$cData = $event->getCardData();
# cast as object seems to solve the error
$cData = (object)$event->getCardData();
```
I can provide a PR with theses modifications, however, I'm not sure this is the best way to handle this and don't know if their are any sides effects.