Strlen() expects parameter 1 to be string, array given at ./apps/maps/lib/Controller/ContactsController.php#71

Hi,

again, the maps app isn’t showing my contacts.
First time, I had some contacts stored failing the app to show the contacts. This time, it seems to be something different, but I can’t understand that gibberish. :))
I recently changed to 4-byte enabled MySQL…

Nextcloud version (eg, 18.0.2): 19.0.3
Operating system and version (eg, Ubuntu 20.04): (shared hosting)
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1): 7.4

The issue you are facing:

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

Steps to replicate it:

  1. Have some contacts with addresses in addressbook
  2. load maps app and wait for contacts beeing displayed
  3. loading-icon will not stop, no contacts are shown.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TAL8A1977NSZTAo1ZtxQAAADM","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"176.199.253.135","user":"user1","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/","message":"Deprecated event type for {\"[object] (OCP\\SabrePluginEvent)\":{\"*statusCode\":200,\"*message\":\"\",\"*server\":{\"[object] (OCA\\DAV\\Connector\\Sabre\\Server)\":{\"tree\":\"[object] (OCA\\DAV\\Connector\\Sabre\\ObjectTree)\",\"*baseUri\":\"/remote.php/webdav/\",\"httpResponse\":\"[object] (Sabre\\HTTP\\Response)\",\"httpRequest\":\"[object] (Sabre\\HTTP\\Request)\",\"sapi\":\"[object] (Sabre\\HTTP\\Sapi)\",\"*plugins\":[],\"transactionType\":null,\"protectedProperties\":{\"...\":\"Over 20 items, aborting normalization\"},\"debugExceptions\":false,\"resourceTypeMapping\":[],\"enablePropfindDepthInfinity\":true,\"xml\":\"[object] (Sabre\\DAV\\Xml\\Service)\",\"*listeners\":{\"...\":\"Over 20 items, aborting normalization\"},\"*wildcardListeners\":[],\"*listenerIndex\":[],\"*logger\":null}},\"Symfony\\Contracts\\EventDispatcher\\EventpropagationStopped\":false}}: null","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"maps","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource file \"/apps/maps/js/filetypes.js\"","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TALwAXaY1uA5jidpBXJwAAACY","level":0,"time":"2020-09-18T14:12:00+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"fulltextsearch","method":"GET","url":"/index.php/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TAMMA1977NSZTAo1ZtxgAAADM","level":0,"time":"2020-09-18T14:12:01+00:00","remoteAddr":"176.199.253.135","user":"user2","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/","message":"Deprecated event type for {\"[object] (OCP\\SabrePluginEvent)\":{\"*statusCode\":200,\"*message\":\"\",\"*server\":{\"[object] (OCA\\DAV\\Connector\\Sabre\\Server)\":{\"tree\":\"[object] (OCA\\DAV\\Connector\\Sabre\\ObjectTree)\",\"*baseUri\":\"/remote.php/webdav/\",\"httpResponse\":\"[object] (Sabre\\HTTP\\Response)\",\"httpRequest\":\"[object] (Sabre\\HTTP\\Request)\",\"sapi\":\"[object] (Sabre\\HTTP\\Sapi)\",\"*plugins\":[],\"transactionType\":null,\"protectedProperties\":{\"...\":\"Over 20 items, aborting normalization\"},\"debugExceptions\":false,\"resourceTypeMapping\":[],\"enablePropfindDepthInfinity\":true,\"xml\":\"[object] (Sabre\\DAV\\Xml\\Service)\",\"*listeners\":{\"...\":\"Over 20 items, aborting normalization\"},\"*wildcardListeners\":[],\"*listenerIndex\":[],\"*logger\":null}},\"Symfony\\Contracts\\EventDispatcher\\EventpropagationStopped\":false}}: null","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.0","version":"19.0.3.1"}
{"reqId":"X2TAM2-tnXYkw4nmuoCVBQAAAAc","level":0,"time":"2020-09-18T14:12:04+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"--","app":"cron","method":"GET","url":"/cron.php","message":"Run OC\\Command\\CommandJob job with ID 1423","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TAM2-tnXYkw4nmuoCVBQAAAAc","level":0,"time":"2020-09-18T14:12:04+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"--","app":"cron","method":"GET","url":"/cron.php","message":"Finished OC\\Command\\CommandJob job with ID 1423 in 0 seconds","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X2TAOKL6nUcv7pTQ4NRU2AAAAB4","level":3,"time":"2020-09-18T14:12:13+00:00","remoteAddr":"2a02:908:e850:20a0:389a:c8b0:a533:3380","user":"user1","app":"PHP","method":"GET","url":"/index.php/apps/maps/contacts","message":"strlen() expects parameter 1 to be string, array given at /home/sites/site100005171/web/nextcloud-jesmh-120917/apps/maps/lib/Controller/ContactsController.php#71","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

nothing added

how to start investigating now?

Regards