Skip to content

Error "Unable to update contact" when creating a new contact #5160

@TimoWilken

Description

@TimoWilken

Describe the bug

I cannot create new contacts; neither in the web UI, nor via DAV using my Android phone's contacts app.

Steps to reproduce

  1. Open Nextcloud Contacts (https://<server URL>/apps/contacts/)
  2. Click "+ New contact"
  3. Add any info (e.g. name, phone number)
  4. Open browser console on Network tab
  5. Click "Save"
  6. See red popup in top right corner saying "Unable to update contact"
  7. Observe HTTP 500 response (see details below).

Expected behavior

The contact should be created successfully and I should not see an error.

Actual behavior

The HTTP PUT request to create the contact to https://<server URL>/remote.php/dav/addressbooks/users/<user>/contacts/<UUID>.vcf gets an HTTP 500 response with the following content:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Error</s:exception>
  <s:message>Call to undefined method OC\DB\QueryBuilder\QueryBuilder::execute()</s:message>
</d:error>

If I create a contact using DAV, I also see a HTTP 500 response in my web server logs, and the Nextcloud log contains the following entry:

Level: Error
Application: webdav
Message: Error Call to undefined method OC\DB\QueryBuilder\QueryBuilder::execute()
Time: 4 Mar 2026, 23:05:34

Contact version

8.4.0

Operating system

Linux (GNU Guix)

PHP engine version

Other

Web server

Nginx

Database

PostgreSQL

Additional info

Nextcloud Hub 26 Winter (33.0.0); PHP 8.5.2.

PHP extensions installed: apcu.so; dba.so; imagick.so; redis.so; plus built-in modules such as --with-pdo-pgsql and --with-pgsql.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions