How to use nextcloud maps? import error

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Nextcloud : 19.0.3
Maps: 0.1.6
Operating system and version : Ubuntu 20.04
Apache version : 2.4.41
PHP version: 7.4.3
Android OpenTracks 3.11.0

I cannot import or see OpenTracks KMZ Tracks

When I try to import an .kmz-Track nothing happens, error message see below.

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

Steps to replicate it:

  1. Go to maps, favorites, import
  2. Choose the kmz file created with Open Tracks
  3. Lock at the logfile

The output of your Nextcloud log in Admin > Logging:

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                                                   2020-10-03T11:53:50+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                          2020-10-03T11:53:50+00:00 

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#64                                                                                   2020-10-03T11:53:50+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                          2020-10-03T11:53:50+00:00 

  Error    PHP                Undefined index: args at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                                                                 2020-10-03T11:53:50+00:00 

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                                                   2020-10-03T11:53:50+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                          2020-10-03T11:53:50+00:00 

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#64                                                                                   2020-10-03T11:53:50+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                          2020-10-03T11:53:50+00:00 

  Error    PHP                Undefined index: args at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                                                                 2020-10-03T11:53:50+00:00 


New log with more details:

  Error    index              Exception: DateTime::__construct(): Failed to parse time string                                                                                                                     2020-10-03T12:12:31+00:00 
                              (2020-10-02T13:20:29.970Z2020-10-02T13:20:30.986Z2020-10-02T13:20:49.993Z2020-10-02T13:20:50.977Z2020-10-02T13:20:56.976Z2020-10-02T13:20:57.993Z2020-10-02T13:21:01.978Z2020-10-02T13:21:02.985Z2020-10-02T13:21:03.977Z2020-10-02T13:21:04.977Z2020-10-02T13:21:25.976Z2020-10-02T13:21:26.977Z2020-10-02T13:21:27.977Z2020-10-02T13:21:30.979Z2020-10-02T13:21:31.980Z2020-10-02T13:21:40.974Z2020-10-02T13:21:41.976Z2020-10-02T13:21:42.977Z2020-10-02T13:21:45.968Z2020-10-02T13:21:46.967Z2020-10-02T13:21:47.993Z2020-10-02T13:21:48.978Z2020-10-02T13:21:52.973Z2020-10-02T13:21:53.971Z2020-10-02T13:22:02.984Z2020-10-02T13:22:03.992Z2020-10-02T13:22:05.976Z2020-10-02T13:22:06.975Z2020-10-02T13:22:10.979Z2020-10-02T13:22:11.971Z2020-10-02T13:23:48.973Z2020-10-02T13:23:49.977Z2020-10-02T13:23:55.973Z2020-10-02T13:23:56.977Z2020-10-02T13:23:57.976Z2020-10-02T13:23:58.982Z2020-10-02T13:23:59.981Z2020-10-02T13:24:01.977Z2020-10-02T13:24:02.974Z2020-10-02T13:24:07.980Z2020-10-02                           
                              at apps/maps/lib/Service/FavoritesService.php line 508                                                                                                                                                        
                                                                                                                                                                                                                                            
                               0. apps/maps/lib/Service/FavoritesService.php line 508                                                                                                                                                       
                                  DateTime->__construct(                                                                                                                                                                                    
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               1. <<closure>>                                                                                                                                                                                               
                                  OCA\Maps\Service\FavoritesService->kmlEndElement(                                                                                                                                                         
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               2. apps/maps/lib/Service/FavoritesService.php line 460                                                                                                                                                       
                                  xml_parse(                                                                                                                                                                                                
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               3. apps/maps/lib/Service/FavoritesService.php line 434                                                                                                                                                       
                                  OCA\Maps\Service\FavoritesService->importFavoritesFromKml(                                                                                                                                                
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               4. apps/maps/lib/Service/FavoritesService.php line 422                                                                                                                                                       
                                  OCA\Maps\Service\FavoritesService->importFavoritesFromKmz(                                                                                                                                                
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               5. apps/maps/lib/Controller/FavoritesController.php line 233                                                                                                                                                 
                                  OCA\Maps\Service\FavoritesService->importFavorites(                                                                                                                                                       
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               6. lib/private/AppFramework/Http/Dispatcher.php line 170                                                                                                                                                     
                                  OCA\Maps\Controller\FavoritesController->importFavorites(                                                                                                                                                 
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               7. lib/private/AppFramework/Http/Dispatcher.php line 100                                                                                                                                                     
                                  OC\AppFramework\Http\Dispatcher->executeController(                                                                                                                                                       
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               8. lib/private/AppFramework/App.php line 137                                                                                                                                                                 
                                  OC\AppFramework\Http\Dispatcher->dispatch(                                                                                                                                                                
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                               9. lib/private/AppFramework/Routing/RouteActionHandler.php line 47                                                                                                                                           
                                  OC\AppFramework\App::main(                                                                                                                                                                                
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                              10. <<closure>>                                                                                                                                                                                               
                                  OC\AppFramework\Routing\RouteActionHandler->__invoke(                                                                                                                                                     
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                              11. lib/private/Route/Router.php line 297                                                                                                                                                                     
                                  call_user_func(                                                                                                                                                                                           
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                              12. lib/base.php line 1012                                                                                                                                                                                    
                                  OC\Route\Router->match(                                                                                                                                                                                   
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         
                              13. index.php line 37                                                                                                                                                                                         
                                  OC::handleRequest(                                                                                                                                                                                        
                                                                                                                                                                                                                                            
                                  )                                                                                                                                                                                                         

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                                                   2020-10-03T12:12:31+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                          2020-10-03T12:12:31+00:00 

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#64                                                                                   2020-10-03T12:12:31+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                          2020-10-03T12:12:31+00:00 

  Error    PHP                Undefined index: args at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                                                                 2020-10-03T12:12:31+00:00 

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                                                   2020-10-03T12:12:31+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#73                                                          2020-10-03T12:12:31+00:00 

  Error    PHP                implode(): Invalid arguments passed at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#64                                                                                   2020-10-03T12:12:31+00:00 

  Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                          2020-10-03T12:12:31+00:00 

  Error    PHP                Undefined index: args at /var/www/nextcloud/apps/logreader/lib/Log/Formatter.php#62                                                                                                 2020-10-03T12:12:31+00:00