PHP Notice depuis MAJ en 3.12 de suivi conso

Bonjour,
j’ai appliqué la dernière mise à jour du plugin du 30/12 en 3.12. Je n’ai pas touché aux configurations du plugins pour l’utilisation des nouvelles commandes.
J’ai un ensemble de PHP Notice dans le log Cron_execution. Ce ne sont que des PHP Notice donc pas un bug en soit.
Extrait des PHP Notice revenant cycliquement :

PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 82
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 82
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 82
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 83
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 83
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 83
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 84
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 84
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 84
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 85
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 85
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 85
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 86
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 86
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 86
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 87
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 87
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 87
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 88
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 88
PHP Notice:  Undefined variable: conso_Jm31 in /var/www/html/plugins/conso/core/class/conso.class.php on line 88
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 89
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 89
PHP Notice:  Undefined variable: conso_Jm15 in /var/www/html/plugins/conso/core/class/conso.class.php on line 89
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 90
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 90
PHP Notice:  Undefined variable: conso_Jm7 in /var/www/html/plugins/conso/core/class/conso.class.php on line 90
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 93
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 93
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 93
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 94
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 94
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 94
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 95
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 95
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 95
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 96
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 96
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 96
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 97
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 97
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 97
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 98
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 98
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 98
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 99
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 99
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 99
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 100
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 100
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 100
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 101
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 101
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 101
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 102
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 102
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 102
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 103
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 103
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 103
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 104
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 104
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 104
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 105
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 105
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 105
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 106
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 106
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 106
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 107
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 107
PHP Notice:  Undefined variable: conso_AvtHier in /var/www/html/plugins/conso/core/class/conso.class.php on line 107
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 108
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 108
PHP Notice:  Undefined variable: conso_Sm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 108
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 109
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 109
PHP Notice:  Undefined variable: conso_Sm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 109
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 110
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 110
PHP Notice:  Undefined variable: conso_Mm2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 110
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 111
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 111
PHP Notice:  Undefined variable: conso_Mm1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 111
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 112
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 112
PHP Notice:  Undefined variable: conso_Am2 in /var/www/html/plugins/conso/core/class/conso.class.php on line 112
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 113
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 113
PHP Notice:  Undefined variable: conso_Am1 in /var/www/html/plugins/conso/core/class/conso.class.php on line 113
PHP Notice:  Undefined variable: conso_hivers in /var/www/html/plugins/conso/core/class/conso.class.php on line 116
PHP Notice:  Undefined variable: conso_hivers in /var/www/html/plugins/conso/core/class/conso.class.php on line 116
PHP Notice:  Undefined variable: conso_hivers in /var/www/html/plugins/conso/core/class/conso.class.php on line 116
PHP Notice:  Undefined variable: conso_printemps in /var/www/html/plugins/conso/core/class/conso.class.php on line 117
PHP Notice:  Undefined variable: conso_printemps in /var/www/html/plugins/conso/core/class/conso.class.php on line 117
PHP Notice:  Undefined variable: conso_printemps in /var/www/html/plugins/conso/core/class/conso.class.php on line 117
PHP Notice:  Undefined variable: conso_ete in /var/www/html/plugins/conso/core/class/conso.class.php on line 118
PHP Notice:  Undefined variable: conso_ete in /var/www/html/plugins/conso/core/class/conso.class.php on line 118
PHP Notice:  Undefined variable: conso_ete in /var/www/html/plugins/conso/core/class/conso.class.php on line 118

Selon moi n’ayant rien cocher pour les utiliser dans la configuration, le plugin ne devrait pas se préoccuper de ces calculs. Est ce que je me trompe ?
Je suis en V4.0.61 sur Odroid-C2 en buster

disponible pour tout complément ou test à réaliser de mon côté

C’est des variables qui ne sont pas déclaré dans le code rien de bien grave
il faut que l’auteur corrige
c’est un problème lié a pHP 7.3

salut @JAG, oui oui je me doute bien que rien de grave et cela n’empêche pas le fonctionnement

Je vais regarder et je te redis

Essaies de remplacer le fichier conso.class.php dans Conso\core\class par celui joint. (enlèves l’extension .txt)

J’ai édité le message car le source était incorrecte

Fait une sauvegarde du fichier auparavant pour pourvoir remettre l’ancien fichier au cas où.

alors j’ai appliqué le fichier de test. dans un premier temps pas de PHP Notice mais en parcourant un peu partout pour vérifier les incidences des modifications, j’ai un soucis en voulant aller dans mes équipements suivi conso.
la page ne s’affiche pas et j’ai le message d’erreur ci dessous :
image

Dans cron_execution j’ai :
PHP Warning: A non-numeric value encountered in /var/www/html/plugins/conso/core/class/conso.class.php on line 159

et dans le log conso j’ai
[2021-01-03 13:15:09][ERROR] : Erreur sur la fonction cron15 du plugin : Unsupported operand types

en remettant l’ancien fichier je récupère bien mes équipements, il doit avoir une petite coquille dans celui que tu m’as transmis :slight_smile:

Effectivement, il y avait une coquille. Normalement cela devrait être mieux.

conso.class.php.txt (38,7 Ko)

après plus d’une heure en test, plus aucun message de PHP Notice, et pas d’erreur dans la navigation ou autre. Ton dernier fichier semble traiter tout ceci :slight_smile:
Merci pour ta réactivité et ta prise en compte de point

je vais taguer la solution mais j’ai une petite question qui n’a rien à voir, je m’aperçois que sur novembre les calculs indiquent 10000kW en HP et 9000kW en HC. bien sur je ne consomme pas autant (ouf pour mon compte en banque) mais comment pourrais je voir où se situe le soucis ?
j’ai peut être des valeurs de mesure absurdes…
avant la mise à jour vers 3.12 je n’ai pas fait attention a ceci. Et il est vrai qu’après mise à jour j’ai aussi reconfiguré les prix les périodes etc qu’il me manquait étant passé en 2021.
Merci d’avance pour ton aide

  • Il faut que tu regarde la table jour dans configuration/données.
  • Dans rechercher tu mets le numéro de ton équipement pour filtrer.
  • Ensuite, il ne te reste plus qu’a défiler les pages pour trouver le ou les jours ayant des valeurs aberrantes.
  • Le jour étant déterminé, il faudra alors aller dans la table teleinfo pour corriger les index erronés ( même manière de rechercher l’équipement pour filtrer.)( la conso est l’index max de la journée - l’index min de la journée). Tu peux regarder des posts précédents: Suivi conso problème de comptage - #7 par benj29
  • Et alors il faudra tout resynchroniser.

Merci pour tes infos.
après analyse la table jour avait les valeur min à 0 sur un jour spécifique. Les données dans la table teleinfo sur ce jour semblaient correctes, j’ai simplement fais une synchronisation et tout est rentré dans l’ordre.

Merci pour la disponibilité et le travail sur le plugin

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.