Closed jimbolaya closed 1 year ago
Can you check, if it is reproduceable on a recent maps version e.g. 0.2.5-1-nightly?
Would the Nightly from apps.nextcloud.com for 25 work on 23 or 24?
It will likely be a while until I move to 25. If it works on 24, that might prompt me to move to that
I don't expect it to work on NC 24 due to the changed design.
I can confirm there is a similar bug that I have found. When I open the map, I receive a lot of Failed to send current position AxiosError: Request failed with status code 500 and Failed to save option values: Nextcloud
Im running nextcloud 25.0.4, maps 0.2.4. I have no contacts only photos enabled
@Kristoffer99 can you figure out which request is failing. This can be seen in the network tab of the devoloper tools
Just open it reload the page and see which request fails. On Chrome and edge there are similar tools called similar and found in a similar location.
Additionally could you check if this happens on the last nightly
you can install it via
occ update maps --allow-unstable
Just managed to recreate it. include a screenshot
Most of the request (right side) are actually the preview, this should be resolved on the nightly. Do you find the request corresponding to the location. Maybe filtering for devices or location could help to identify this.
But I also vaguely remember fixing something like this in the nightly. Maybe testing this would be intressting, too.
Do you mean that something is fixed in a newer version of maps then? I cant update to something newer in the version im running right now it seems like.
Basically the last year of development is only in the nightly.
occ update maps --allow-unstable
Doesn't update?
The last time I looked at whether I could use nightly I was on 23. It looks like it's there for 24 now and seems to work well for me. Thank you for the suggestion.
@jimbolaya thanks
⚠️ This issue respects the following points: ⚠️
Bug description
I just upgraded php from 7.4 to 8.0 and have been encountering this error when I attempt to enable contacts on the maps:
(white space removed)
Looking up my nextcloud.log, I found the following
{"reqId":"Y5Kfe0u3oSZGi26HoAHp1AAAAAY","level":3,"time":"2022-12-09T02:37:47+00:00","remoteAddr":"192.168.40.1","user":"myuser","app":"index","method":"GET","url":"/index.php/apps/maps/contacts","message":"strlen(): Argument #1 ($string) must be of type string, array given in file '/var/www/nextcloud/apps/maps/lib/Controller/ContactsController.php' line 74","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0","version":"23.0.12.2","exception":{"Exception":"Exception","Message":"strlen(): Argument #1 ($string) must be of type string, array given in file '/var/www/nextcloud/apps/maps/lib/Controller/ContactsController.php' line 74","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},
My contacts fail to show up on the Maps
Steps to reproduce
Expected behavior
I don't really expect to see large errors on the Maps screen.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install of the server?
None
Is this bug present after an update or on a fresh install of the app?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Browser Console
Additional info
No response