Error: Undefined array key \"URI\ in nextcloud.log

Nextcloud version: 28.0.2
Operating system and version: Ubuntu 22.04
Apache version: Apache/2.4.52
PHP version: 8.1.2
Database: PostgreSQL 14.11

Problem:
Every time I click on something in nextcloud, e.g. talk, I get the following error message in the nextcloud.log (this error message is always posted 4 times one below the other)

nextcloud.log output:

{"reqId":"Qj47GFH1j8eoWu08mCUf","level":3,"time":"2024-02-28T10:28:26+00:00","remoteAddr":"*.*.*.*","user":"******","app":"PHP","method":"POST","url":"/contactsmenu/contacts","message":"Undefined array key \"URI\" at /var/www/nextcloud/lib/private/Contacts/ContactsMenu/ContactsStore.php#138","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"Qj47GFH1j8eoWu08mCUf","level":3,"time":"2024-02-28T10:28:26+00:00","remoteAddr":"*.*.*.*","user":"******","app":"PHP","method":"POST","url":"/contactsmenu/contacts","message":"Undefined array key \"URI\" at /var/www/nextcloud/lib/private/Contacts/ContactsMenu/ContactsStore.php#138","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"Qj47GFH1j8eoWu08mCUf","level":3,"time":"2024-02-28T10:28:26+00:00","remoteAddr":"*.*.*.*","user":"******","app":"PHP","method":"POST","url":"/contactsmenu/contacts","message":"Undefined array key \"URI\" at /var/www/nextcloud/lib/private/Contacts/ContactsMenu/ContactsStore.php#138","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"PHP"}}
{"reqId":"Qj47GFH1j8eoWu08mCUf","level":3,"time":"2024-02-28T10:28:26+00:00","remoteAddr":"*.*.*.*","user":"******","app":"PHP","method":"POST","url":"/contactsmenu/contacts","message":"Undefined array key \"URI\" at /var/www/nextcloud/lib/private/Contacts/ContactsMenu/ContactsStore.php#138","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"PHP"}}

My thoughts:
I had connected AD to log in, had a conversation with a test user there, then deleted the AD connection and connected keycloak using the “social login” app. This showed me the conversation with a user who no longer existed, which I then deleted.

I have attached another screenshot with the message on the console.

Maybe someone can help me

Thanks

1 Like

after I reinstalled nextcloud and installed the app “Announcement Center”, I now get this error. When I go to the configuration page of the app, only a blank page appears. Unfortunately, the log is now full of errors. Even restarting apache or uninstalling the app didn’t help. Does anyone have another solution?

I just wanted to add my name to the list as affected by this same issue.

+1, same error with users connected to LDAP/AD

1 Like

I also have the same problem, how to fix this error?

This is likely a bug.

Can one of you report this here: Issues · nextcloud/server · GitHub

Include the full log entry/stack trace.

Keep in mind I’m referring specifically to the one mentioning URI. If any of you are getting Undefined array key errors referencing anything other than URI they are likely completely unrelated to this thread.

EDIT: When reporting, mention the following prior matter: [Bug]: After upgrade to 28.0.1 nonstop errors regarding guestName avatar · Issue #42858 · nextcloud/server · GitHub (not the same matter, but it’s somewhat related and may streamline resolution)