# Error: This parser can only read from strings or streams

**URL:** <https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768>\
**Category:** ℹ️ Support\
**Tags:** carddav, aio, webdav\
**Created:** [December 31, 2022, 1:48pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768 "2022-12-31T13:48:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joho500](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joho500/32/48246_2.png) [@joho500](https://help.nextcloud.com/u/joho500)\
**Post date:** [December 31, 2022, 1:48pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/1 "2022-12-31T13:48:33Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> 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 ❤

Nextcloud version _(eg, 20.0.5)_: `AIO 4.0.1 with NC 25.0.2`  
Operating system and version _(eg, Ubuntu 20.04)_: `Ubuntu 22.04.1`  
Apache or nginx version _(eg, Apache 2.4.25)_: `AIO version`  
PHP version _(eg, 7.4)_: `AIO version`

The issue you are facing:  
Davx5 and Nextcloud throw errors when updating a contact on my Android phone. I noticed this for the first time after Nextcloud AIO updated to 25.0.2. The logs below are from the last time I edited, this morning. I noticed the same error yesterday evening.

Is this the first time you’ve seen this error? _(Y/N)_: N

Steps to replicate it:

1. Edit a contact on my Android phone
2. DAVx5 handels the update and throws an error
3. Nextcloud shows the errors below

The output of your Nextcloud log in **Admin \> Logging** :

```auto
[PHP] Fout: Error: Attempt to read property "uri" on array at /var/www/html/custom_apps/maps/lib/Listener/CardUpdatedListener.php#53 at <<closure>>

 0. /var/www/html/custom_apps/maps/lib/Listener/CardUpdatedListener.php line 53
    OC\Log\ErrorHandler::onError(2, "Attempt to read ... y", "/var/www/html/c ... p", 53)
 1. /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php line 87
    OCA\Maps\Listener\CardUpdatedListener->handle(OCA\DAV\Events\CardUpdatedEvent {})
 2. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke(OCA\DAV\Events\CardUpdatedEvent {}, "OCA\\DAV\\Events\\CardUpdatedEvent", Symfony\Componen ... {})
 3. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {},Clos ... }], "OCA\\DAV\\Events\\CardUpdatedEvent", OCA\DAV\Events\CardUpdatedEvent {})
 4. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCA\DAV\Events\CardUpdatedEvent {}, "OCA\\DAV\\Events\\CardUpdatedEvent")
 5. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 100
    OC\EventDispatcher\EventDispatcher->dispatch("OCA\\DAV\\Events\\CardUpdatedEvent", OCA\DAV\Events\CardUpdatedEvent {})
 6. /var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php line 732
    OC\EventDispatcher\EventDispatcher->dispatchTyped(OCA\DAV\Events\CardUpdatedEvent {})
 7. /var/www/html/3rdparty/sabre/dav/lib/CardDAV/Card.php line 94
    OCA\DAV\CardDAV\CardDavBackend->updateCard(" ***sensitive parameters replaced***")
 8. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1137
    Sabre\CardDAV\Card->put(" ***sensitive parameters replaced***")
 9. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 492
    Sabre\DAV\Server->updateFile(" ***sensitive parameters replaced***")
10. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:PUT", [Sabre\HTTP\Requ ... }])
12. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
13. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
14. /var/www/html/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
15. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
16. /var/www/html/remote.php line 171
    require_once("/var/www/html/a ... p")

PUT /remote.php/dav/addressbooks/users/joho/contacts/7844003f-ddd2-438c-96cb-f1c07fabd527.vcf
from 84.107.118.207 by joho at 2022-12-31T13:09:22+00:00

```

```auto
[webdav] Fout: InvalidArgumentException: This parser can only read from strings or streams. at <<closure>>

 0. /var/www/html/3rdparty/sabre/vobject/lib/Parser/MimeDir.php line 83
    Sabre\VObject\Parser\MimeDir->setInput(["*** sensitive ... "])
 1. /var/www/html/3rdparty/sabre/vobject/lib/Reader.php line 47
    Sabre\VObject\Parser\MimeDir->parse(["*** sensitive ... "], 0)
 2. /var/www/html/custom_apps/maps/lib/Service/AddressService.php line 223
    Sabre\VObject\Reader::read(["*** sensitive ... "])
 3. /var/www/html/custom_apps/maps/lib/Listener/CardUpdatedListener.php line 54
    OCA\Maps\Service\AddressService->scheduleVCardForLookup(["***sensitive ... "], "*** sensitive parameters replaced ***")
 4. /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php line 87
    OCA\Maps\Listener\CardUpdatedListener->handle(OCA\DAV\Events\CardUpdatedEvent {})
 5. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke(OCA\DAV\Events\CardUpdatedEvent {}, "OCA\\DAV\\Events\\CardUpdatedEvent", Symfony\Componen ... {})
 6. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {},Clos ... }], "OCA\\DAV\\Events\\CardUpdatedEvent", OCA\DAV\Events\CardUpdatedEvent {})
 7. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCA\DAV\Events\CardUpdatedEvent {}, "OCA\\DAV\\Events\\CardUpdatedEvent")
 8. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 100
    OC\EventDispatcher\EventDispatcher->dispatch("OCA\\DAV\\Events\\CardUpdatedEvent", OCA\DAV\Events\CardUpdatedEvent {})
 9. /var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php line 732
    OC\EventDispatcher\EventDispatcher->dispatchTyped(OCA\DAV\Events\CardUpdatedEvent {})
10. /var/www/html/3rdparty/sabre/dav/lib/CardDAV/Card.php line 94
    OCA\DAV\CardDAV\CardDavBackend->updateCard(" ***sensitive parameters replaced***")
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1137
    Sabre\CardDAV\Card->put(" ***sensitive parameters replaced***")
12. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 492
    Sabre\DAV\Server->updateFile(" ***sensitive parameters replaced***")
13. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
14. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:PUT", [Sabre\HTTP\Requ ... }])
15. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
16. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
17. /var/www/html/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
18. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
19. /var/www/html/remote.php line 171
    require_once("/var/www/html/a ... p")

PUT /remote.php/dav/addressbooks/users/joho/contacts/7844003f-ddd2-438c-96cb-f1c07fabd527.vcf
from 84.107.118.207 by joho at 2022-12-31T13:09:22+00:00

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):  
[link to config.php on pastebin.com](https://pastebin.com/vch7DxMj)

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
No errors shown in log of nextcloud-aio-apache container

```

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [December 31, 2022, 3:52pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/2 "2022-12-31T15:52:10Z")

</div>

Hi, you could try to disable the `maps` app and check if that resolves the issue!

---

<div class="post-metadata">

**Author:** ![joho500](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joho500/32/48246_2.png) [@joho500](https://help.nextcloud.com/u/joho500)\
**Post date:** [January 1, 2023, 12:56pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/3 "2023-01-01T12:56:36Z")

</div>

Disabling the Maps app seems to have solved the error. Edits of two contacts did not result in the error. So it looks like a bug in the Maps app?

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [January 1, 2023, 12:59pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/4 "2023-01-01T12:59:07Z")

</div>

> [@joho500](#):
>
> So it looks like a bug in the Maps app?

Yes indeed.

---

<div class="post-metadata">

**Author:** ![joho500](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joho500/32/48246_2.png) [@joho500](https://help.nextcloud.com/u/joho500)\
**Post date:** [January 1, 2023, 1:02pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/5 "2023-01-01T13:02:07Z")

</div>

How to proceed with that? Should I file a bug report somewhere?

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [January 1, 2023, 1:10pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/6 "2023-01-01T13:10:43Z")

</div>

Best would be to create one here [GitHub - nextcloud/maps: 🌍🌏🌎 The whole world fits inside your cloud!](https://github.com/nextcloud/maps) if there is not an open one with the same problem already.

---

<div class="post-metadata">

**Author:** ![joho500](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joho500/32/48246_2.png) [@joho500](https://help.nextcloud.com/u/joho500)\
**Post date:** [January 1, 2023, 1:19pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/7 "2023-01-01T13:19:55Z")

</div>

It appears there was already an issue submitted and a solution committed (yesterday 😀). So it will be solved in an upcoming update.

> <https://github.com/nextcloud/maps/issues/864>
>
> \### ⚠️ 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.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 2:22pm UTC](https://help.nextcloud.com/t/error-this-parser-can-only-read-from-strings-or-streams/152768/8 "2024-12-14T14:22:22Z")

</div>


