Geotrav ok mais log listener se rempli rapidement

Bonjour
Suite à l’arret du fonctionnement de ioscloud, je suis passé sur geotrav pour gérer mon geofence.
Tout fonctionne bien mais le log listener_execution grossi a vue d’oeil en répétant ceci :

thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134
PHP Fatal error:  Uncaught Error: Call to a member function updateGeocodingReverse() on bool in /var/www/html/plugins/geotrav/core/class/geotrav.class.php:134
Stack trace:
#0 /var/www/html/core/class/listener.class.php(218): geotrav::trackGeoloc(Array)
#1 /var/www/html/core/php/jeeListener.php(49): listener->execute('6981', '48.056211456639...', '2021-11-23 08:5...')
#2 {main}
thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134

Pour compléter :
J’ai 3 téléphones qui poussent leurs coordonnées dans un equipement geotrav
J’ai désactivé « Déterminer l’adresse » et « Rafraichissement automatique » qui ne me semble pas utiles à mon usage.
Pour chaque telephone j’ai 1 ou 2 geofence.
J’ai bien activé les API (tout fonctionne bien)
J’ai un jeedom 4.1.27 avec le plugin en 2021-04-10 01:12:33
J’ai passé le log du plugin en debug mais il n’y a rien dedans

Auriez vous une idée du problème ?

J’ai exactement le même problème mais pas de solution. :frowning:

Salut @lunarok

Pourrais tu nous aider à ce sujet, j’ai le log qui se rempli à vue d’oeil avec ces erreurs:

0000|PHP Fatal error:  Uncaught Error: Call to a member function updateGeocodingReverse() on bool in /var/www/html/plugins/geotrav/core/class/geotrav.class.php:134
0001|Stack trace:
0002|#0 /var/www/html/core/class/listener.class.php(243): geotrav::trackGeoloc(Array)
0003|#1 /var/www/html/core/php/jeeListener.php(49): listener->execute('4420', '43.837288,1.399...', '2024-06-04 08:5...')
0004|#2 {main}
0005|thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134

Je n’ai pas cocher la case « Déterminer l’adresse » dans les équipements de localisation. De plus, ça ne le fait que sur 2 équipements sur 3 alors qu’ils sont configurés de façon identique.

Bonjour,
Pourriez-vous SVP passer le plugin en debug, puis après une des erreurs ci-dessus, fournir le log geotrav?

Salut,

Voici ce qu’il se passe dans Geotrav quand les erreurs du listener apparaissent:

Log GEOTRAV:

0000|[2024-06-04 15:25:34] DEBUG  : Listenner update Array (     [geotrav] => 335     [event_id] => 4412     [value] => xx.5397856,xx.521877     [datetime] => 2024-06-04 15:20:55     [listener_id] => 3 )
0001|[2024-06-04 15:25:34] DEBUG  : Listenner update Array (     [geotrav] => 383     [event_id] => 4412     [value] => xx.5397856,x.521877     [datetime] => 2024-06-04 15:20:55     [listener_id] => 7 )
0002|[2024-06-04 15:25:34] DEBUG  : Listenner update Array (     [geotrav] => 337     [event_id] => 4412     [value] => xx.5397856,x.521877     [datetime] => 2024-06-04 15:20:55     [listener_id] => 5 )
0003|[2024-06-04 15:25:35] DEBUG  : Update location : Array (     [location:street] => NA     [location:city] => NA     [location:district] => NA     [location:zip] => NA     [location:country] => NA     [location:coordinate] => xx.5397856,x.521877     [location:elevation] =>      [location:address] => NA, NA NA, NA     [location:latitude] => xx.5397856     [location:longitude] => x.521877     [location:department] => NA )
0004|[2024-06-04 15:25:35] DEBUG  : Listenner update Array (     [geotrav] => 336     [event_id] => 4420     [value] => xx.8372323,x.3994663     [datetime] => 2024-06-04 15:21:05     [listener_id] => 4 )
0005|[2024-06-04 15:25:35] DEBUG  : Listenner update Array (     [geotrav] => 331     [event_id] => 4420     [value] => xx.8372323,x.3994663     [datetime] => 2024-06-04 15:21:05     [listener_id] => 2 )
0006|[2024-06-04 15:25:35] DEBUG  : Calcul geofence Présence Maison 38 pour 383 xx.5397856,x.521877
0007|[2024-06-04 15:25:35] DEBUG  : Geofence 383 34548
0008|[2024-06-04 15:25:35] DEBUG  : Calcul geofence Présence Travail 343 pour 383 xx.5397856,x.521877
0009|[2024-06-04 15:25:35] DEBUG  : Geofence 383 69
0010|[2024-06-04 15:25:35] DEBUG  : Listenner update Array (     [geotrav] => 384     [event_id] => 4420     [value] => 43.8372323,1.3994663     [datetime] => 2024-06-04 15:21:05     [listener_id] => 8 )
0011|[2024-06-04 15:25:35] DEBUG  : Trigger cmd 5023 valeur xx.5397856,x.521877 de GPS Vincent(383)
0012|[2024-06-04 15:25:35] DEBUG  : Calcul geofence Présence Maison 38 pour 383 xx.5397856,x.521877
0013|[2024-06-04 15:25:35] DEBUG  : Geofence 383 34548
0014|[2024-06-04 15:25:35] DEBUG  : Geofence eqlogic 383
0015|[2024-06-04 15:25:35] DEBUG  : Calcul geofence Présence Travail 343 pour 383 xx.5397856,x.521877
0016|[2024-06-04 15:25:35] DEBUG  : Geofence 383 69
0017|[2024-06-04 15:25:35] DEBUG  : Geofence eqlogic 383
0018|[2024-06-04 15:25:35] DEBUG  : Update location : Array (     [location:street] => NA     [location:city] => NA     [location:district] => NA     [location:zip] => NA     [location:country] => NA     [location:coordinate] => xx.8372323,x.3994663     [location:elevation] =>      [location:address] => NA, NA NA, NA     [location:latitude] => xx.8372323     [location:longitude] => x.3994663     [location:department] => NA )
0019|[2024-06-04 15:25:35] DEBUG  : Calcul geofence Présence Maison 38 pour 384 xx.8372323,xx.3994663
0020|[2024-06-04 15:25:35] DEBUG  : Geofence 384 4
0021|[2024-06-04 15:25:35] DEBUG  : Trigger cmd 5037 valeur xx.8372323,x.3994663 de GPS Jenny(384)
0022|[2024-06-04 15:25:35] DEBUG  : Calcul geofence Présence Maison 38 pour 384 xx.8372323,x.3994663
0023|[2024-06-04 15:25:35] DEBUG  : Geofence 384 4
0024|[2024-06-04 15:25:35] DEBUG  : Geofence eqlogic 384

LOG Listener_execution

0000|PHP Fatal error:  Uncaught Error: Call to a member function updateGeocodingReverse() on bool in /var/www/html/plugins/geotrav/core/class/geotrav.class.php:134
0001|Stack trace:
0002|#0 /var/www/html/core/class/listener.class.php(243): geotrav::trackGeoloc(Array)
0003|#1 /var/www/html/core/php/jeeListener.php(49): listener->execute('4412', 'xx.5397856,xx.52...', '2024-06-04 15:2...')
0004|#2 {main}
0005|thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134
0006|PHP Fatal error:  Uncaught Error: Call to a member function updateGeocodingReverse() on bool in /var/www/html/plugins/geotrav/core/class/geotrav.class.php:134
0007|Stack trace:
0008|#0 /var/www/html/core/class/listener.class.php(243): geotrav::trackGeoloc(Array)
0009|#1 /var/www/html/core/php/jeeListener.php(49): listener->execute('4412', 'xx.5397856,xx.52...', '2024-06-04 15:2...')
0010|#2 {main}
0011|thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134
0012|PHP Fatal error:  Uncaught Error: Call to a member function updateGeocodingReverse() on bool in /var/www/html/plugins/geotrav/core/class/geotrav.class.php:134
0013|Stack trace:
0014|#0 /var/www/html/core/class/listener.class.php(243): geotrav::trackGeoloc(Array)
0015|#1 /var/www/html/core/php/jeeListener.php(49): listener->execute('4420', 'xx.8372323,xx.39...', '2024-06-04 15:2...')
0016|#2 {main}
0017|thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134
0018|PHP Fatal error:  Uncaught Error: Call to a member function updateGeocodingReverse() on bool in /var/www/html/plugins/geotrav/core/class/geotrav.class.php:134
0019|Stack trace:
0020|#0 /var/www/html/core/class/listener.class.php(243): geotrav::trackGeoloc(Array)
0021|#1 /var/www/html/core/php/jeeListener.php(49): listener->execute('4420', 'xx.8372323,xx.39...', '2024-06-04 15:2...')
0022|#2 {main}
0023|thrown in /var/www/html/plugins/geotrav/core/class/geotrav.class.php on line 134

Idem, j’ai le meme phénomène

N’ayant aucun support du développeur, j’ai tout simplement supprimé ce plugin, je l’ai remplacé par Geoloc et Google Shared Location. Même résultat mais sans les erreurs et finalement plus simple à utiliser.