New contact won´t save

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):
    • 33.0.0 - 33.0.0.16
  • Operating system and version (e.g., Ubuntu 24.04):
    • docker-28.5.1_ce-36.1 on OpenSuse Tumbleweed
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.66 (Debian)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx proxy manager v2.13.6
  • PHP version (e.g, 8.3):
    • 8.4.19
      
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • This was the first contact I tried to add after update
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker pull nextcloud:latest
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

When I try to save a new contact I get a warning that NC is unable to.

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

  1. Go to Contacts app, click ‘new contact’

  2. Fill in some data

  3. Click on ‘save’

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"vaQ3vsoCMnEvRhUjGFMj","level":3,"time":"2026-03-23T10:06:40+00:00","remoteAddr":"192.168.100.198","user":"jeroenvt","app":"no app in context","method":"PUT","url":"/remote.php/dav/addressbooks/users/jeroenvt/contacts/89B0365B-0B88-43A8-8558-9A595D292C24.vcf","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0","version":"33.0.0.16","exception":{"Exception":"Error","Message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/maps/lib/Service/AddressService.php","line":225,"function":"cleanUpDBContactAddresses","class":"OCA\\Maps\\Service\\AddressService","type":"->","args":[{"__class__":"Sabre\\VObject\\Component\\VCard","parent":"*** sensitive parameters replaced ***","name":"VCARD"},"*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/maps/lib/Listener/CardCreatedListener.php","line":50,"function":"scheduleVCardForLookup","class":"OCA\\Maps\\Service\\AddressService","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":57,"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":220,"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":56,"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":67,"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":79,"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":649,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\DAV\\Events\\CardCreatedEvent"}]},{"file":"/var/www/html/lib/public/AppFramework/Db/TTransactional.php","line":45,"function":"{closure:OCA\\DAV\\CardDAV\\CardDavBackend::createCard():611}","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php","line":611,"function":"atomic","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":[{"__class__":"Closure"},{"__class__":"OC\\DB\\ConnectionAdapter"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/CardDAV/AddressBook.php","line":144,"function":"createCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"Sabre\\CardDAV\\AddressBook","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","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/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":427,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":25,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/custom_apps/maps/lib/Service/AddressService.php","Line":252,"message":"Uncaught exception","exception":"{\"class\":\"Error\",\"message\":\"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()\",\"code\":0,\"file\":\"/var/www/html/custom_apps/maps/lib/Service/AddressService.php:252\",\"trace\":\"#0 /var/www/html/custom_apps/maps/lib/Service/AddressService.php(225): OCA\\Maps\\Service\\AddressService->cleanUpDBContactAddresses(Object(Sabre\\VObject\\Component\\VCard), '89B0365B-0B88-4...')\\n#1 /var/www/html/custom_apps/maps/lib/Listener/CardCreatedListener.php(50): OCA\\Maps\\Service\\AddressService->scheduleVCardForLookup('BEGIN:VCARD\\r\\nVE...', '89B0365B-0B88-4...')\\n#2 /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php(57): OCA\\Maps\\Listener\\CardCreatedListener->handle(Object(OCA\\DAV\\Events\\CardCreatedEvent))\\n#3 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(220): OC\\EventDispatcher\\ServiceEventListener->__invoke(Object(OCA\\DAV\\Events\\CardCreatedEvent), 'OCA\\\\DAV\\\\Events\\\\...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\\n#4 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners(Array, 'OCA\\\\DAV\\\\Events\\\\...', Object(OCA\\DAV\\Events\\CardCreatedEvent))\\n#5 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(67): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch(Object(OCA\\DAV\\Events\\CardCreatedEvent), 'OCA\\\\DAV\\\\Events\\\\...')\\n#6 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(79): OC\\EventDispatcher\\EventDispatcher->dispatch('OCA\\\\DAV\\\\Events\\\\...', Object(OCA\\DAV\\Events\\CardCreatedEvent))\\n#7 /var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php(649): OC\\EventDispatcher\\EventDispatcher->dispatchTyped(Object(OCA\\DAV\\Events\\CardCreatedEvent))\\n#8 /var/www/html/lib/public/AppFramework/Db/TTransactional.php(45): OCA\\DAV\\CardDAV\\CardDavBackend->{closure:OCA\\DAV\\CardDAV\\CardDavBackend::createCard():611}()\\n#9 /var/www/html/apps/dav/lib/CardDAV/CardDavBackend.php(611): OCA\\DAV\\CardDAV\\CardDavBackend->atomic(Object(Closure), Object(OC\\DB\\ConnectionAdapter))\\n#10 /var/www/html/3rdparty/sabre/dav/lib/CardDAV/AddressBook.php(144): OCA\\DAV\\CardDAV\\CardDavBackend->createCard(2, '89B0365B-0B88-4...', 'BEGIN:VCARD\\r\\nVE...')\\n#11 /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php(1098): Sabre\\CardDAV\\AddressBook->createFile('89B0365B-0B88-4...', 'BEGIN:VCARD\\r\\nVE...')\\n#12 /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\\DAV\\Server->createFile('addressbooks/us...', 'BEGIN:VCARD\\r\\nVE...', NULL)\\n#13 /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\\n#14 /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit('method:PUT', Array)\\n#15 /var/www/html/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\\n#16 /var/www/html/apps/dav/lib/Server.php(427): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#17 /var/www/html/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#18 /var/www/html/remote.php(151): require_once('/var/www/html/a...')\\n#19 {main}\"}","CustomMessage":"Uncaught exception"},"id":"69c12a2f02b49"}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "serverid": "39",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "apps_paths": [
        {
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
        }
    ],
    "upgrade.disable-web": true,
    "overwriteprotocol": "https",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "next.thedutchchief.nl"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "33.0.0.16",
    "overwrite.cli.url": "http:\/\/next.thedutchchief.nl",
    "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***",
    "loglevel": 2,
    "maintenance": false,
    "default_phone_region": "NL",
    "memories.db.triggers.fcu": true,
    "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
    "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
    "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\Image",
        "OC\\Preview\\Movie",
        "OC\\Preview\\TXT",
        "OC\\Preview\\PDF",
        "OC\\Preview\\MP4",
        "OC\\Preview\\AVI",
        "OC\\Preview\\MOV",
        "OC\\Preview\\HEIC",
        "OC\\Preview\\HEIF",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\MOV",
        "OC\\Preview\\PNG"
    ],
    "preview_max_x": 1024,
    "preview_max_y": 1024,
    "preview_max_scale_factor": 1,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauth": true,
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "memories.gis_type": 1,
    "app_install_overwrite": [
        "maps",
        "memories",
        "cloud_py_api",
        "mediadc"
    ],
    "config_preset": 2,
    "maintenance_window_start": 1,
    "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
    "memories.vod.ffprobe": "\/usr\/bin\/ffprobe"
}

Apps

The output of occ app:list (if possible).

Enabled:
 - activity: 6.0.0-dev.0
 - admin_audit: 1.23.0
 - bruteforcesettings: 6.0.0-dev.0
 - calendar: 6.2.1
 - circles: 33.0.0
 - cloud_py_api: 0.2.0
 - comments: 1.23.0
 - contacts: 8.4.1
 - contactsinteraction: 1.14.1
 - dashboard: 7.13.0
 - federation: 1.23.0
 - files_downloadlimit: 5.1.0-dev.0
 - files_external: 1.25.1
 - files_pdfviewer: 6.0.0-dev.0
 - files_reminders: 1.6.0
 - files_sharing: 1.25.2
 - files_trashbin: 1.23.0
 - files_versions: 1.26.0
 - firstrunwizard: 6.0.0-dev.0
 - gpxpod: 8.2.1
 - guests: 4.6.0
 - logreader: 6.0.0
 - mail: 5.7.4
 - maps: 1.6.0
 - mediadc: 0.4.0
 - memories: 7.8.2
 - nextcloud_announcements: 5.0.0
 - notes: 4.13.1
 - notifications: 6.0.0
 - password_policy: 5.0.0-dev.0
 - passwords: 2026.2.20
 - photos: 6.0.0-dev.0
 - previewgenerator: 5.13.0
 - privacy: 5.0.0-dev.0
 - recognize: 11.0.1
 - recommendations: 6.0.0-dev.0
 - related_resources: 4.0.0-dev.0
 - serverinfo: 5.0.0-dev.0
 - sharebymail: 1.23.0
 - support: 5.0.0
 - survey_client: 5.0.0-dev.0
 - systemtags: 1.23.0
 - tasks: 0.17.1
 - text: 7.0.0-dev.3
 - twofactor_totp: 15.0.0-dev.0
 - updatenotification: 1.23.0
 - user_status: 1.13.0
 - weather_status: 1.13.0
 - webhook_listeners: 1.5.0
Disabled:
 - app_api: 32.0.0
 - encryption
 - suspicious_login
 - twofactor_nextcloud_notification
 - user_ldap

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

The log indicates the maps app. You likely have it force enabled. The published version is not currently v33 compatible.

1 Like

That’it, disabled maps and it works again. TNX

Disabling Maps also fixed the problem for me. But jtr had actually suggested to force enable it. Furthermore, what does the Maps App have to do with the Contacts App? It seems to be a workaround rather than a permanent fix…

Disabling Maps sorted it for me (just now) too. Maps app does integrate with Contacts app to show contacts’ locations, if that address data is present, so I guess that’s where a disassociation has occurred. Maps, when I looked just a moment ago is now 2 versions of NC behind and shows tested only up to NC31.