Erreur dans « http.error » et « cron_execution » après activation du plugin « naenergie »

Bonjour.

Contexte jeedom dernière version stable 4.3.15 sur Nuc I5.

Je teste le plugin « naenergie » en parallèle du plugin officiel « Netatmo Thermostat ». Depuis l’activation de « naenergie », j’ai des erreurs (des warnings ?) qui ne concernent pas forcément « naenergie » et qui apparaissent dans les log :

« http.error »


[13-Feb-2023 20:58:11 Europe/Brussels] PHP Notice:  Undefined variable: i in /var/www/html/plugins/naEnergie/desktop/php/panelw.php on line 322
[13-Feb-2023 20:58:11 Europe/Brussels] PHP Notice:  Undefined variable: i in /var/www/html/plugins/naEnergie/desktop/php/panelw.php on line 329
[13-Feb-2023 20:58:11 Europe/Brussels] PHP Notice:  Undefined variable: i in /var/www/html/plugins/naEnergie/desktop/php/panelw.php on line 335
[Mon Feb 13 21:08:41.900831 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.900934 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.900969 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.901053 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.901082 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.901110 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.901657 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.901701 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.901731 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902036 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902072 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902101 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902181 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902210 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902238 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902325 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902355 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902382 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902451 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902479 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard
[Mon Feb 13 21:08:41.902506 2023] [php7:notice] [pid 24280] [client 192.168.1.119:59850] PHP Notice:  Undefined variable: isMonth in /var/www/html/plugins/mybin/core/class/mybin.class.php on line 559, referer: http://192.168.1.62/index.php?v=d&p=dashboard

et « cron_execution »

PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 445
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 446
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 447
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 448
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 449
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 450
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 451
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 452
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 453
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 454
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 455
PHP Notice:  Undefined index: properties in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 456
PHP Deprecated:  Non-static method netatmoThermostat::getClient() should not be called statically in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 461
PHP Notice:  Undefined index: titre in /var/www/html/plugins/meteofrance/core/class/meteofrance.class.php on line 544
PHP Deprecated:  Non-static method netatmoThermostat::syncWithTherm() should not be called statically in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 465
PHP Deprecated:  Non-static method netatmoThermostat::getClient() should not be called statically in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 158
PHP Notice:  Undefined variable: modename in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 165
PHP Notice:  Undefined variable: consigne in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 166
PHP Deprecated:  Non-static method netatmoThermostat::getLastMesure() should not be called statically in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 178
PHP Deprecated:  Non-static method netatmoThermostat::getClient() should not be called statically in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 140
PHP Notice:  Undefined index: name in /var/www/html/plugins/netatmoThermostat/core/class/netatmoThermostat.class.php on line 242

Ces messages n’empêchent pas le bon fonctionnement des plugins concernés, et si je désactive le plugin « naenergie », ces messages n’apparaissent plus. Le volume de lignes générées devient vite important et je peux vite passer à côté d’un réel souci. Y a t-il une solution pour éviter ces erreurs (warnings ?) ?
Merci.

Salut
oui je te confirme la responsabilité du plugin
C’est un oublie de ma part pour la version stable, ces erreurs sont plutôt destinées aux DEV, il est presque impossible d’éviter 100% d’erreurs tellement les origines peuvent être différentes.
Toutefois si ces erreurs reviennent à chaque cron, j’estime que c’est une anomalie qui doit être corrigé par le DEV.
Je ne connais pas de méthode pour les éviter sur une machine en particulier mais je ferais une MAJ dans ce sens.

Bonjour.

Merci :+1:

Bonjour.

J’ai cherché de mon côté. J’ai mis en commentaire la ligne « error_reporting(E_ALL); » du fichier « naEnergieGraph.php » et je n’ai plus les messages d’erreur.

1 « J'aime »