Essaie de décocher TOTAL puisque tu n’as pas de sous-équipement
Pas de changement, je suis passé à $, même erreur, retour à €, pareil
Pour moi c’est un problème avec les taxes
Toujours dans le class téléinfo, tu peux remplacer sa :
if($result_taxe!==false)
foreach ($result_taxe as $taxes => $taxe) {
switch ($type) {
case 'day':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_day'];
break;
case 'week':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_week'];
break;
case 'month':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_month'];
break;
case 'year':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_year'];
break;
}
$inte += $taxe['total_inte']; // Taxe variable
$multi_ttc += round($taxe['multi_ttc'],2);
}
Par ca :
if($result_taxe!==false) {
foreach ($result_taxe as $taxes => $taxe) {
switch ($type) {
case 'day':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_day'];
break;
case 'week':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_week'];
break;
case 'month':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_month'];
break;
case 'year':
/*if (!$parent_id)*/ $fixe += $taxe['fixe_year'];
break;
}
$inte += $taxe['total_inte']; // Taxe variable
$multi_ttc += round($taxe['multi_ttc'],2);
}
}
idem, même erreur (et en decochant default => idem)
on arrête pas de leur dire au gouvernement que les taxes sont un problème
J’aime, c’est vrai que pour nous les dev sa serais plus simple
Encore Pareil
et il y a bcp de log php d’erreur qui n’etaient pas présent avant la MAJ:
9-Feb-2020 15:50:18 Europe/Brussels] PHP Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1349
[19-Feb-2020 15:50:18 Europe/Brussels] PHP Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1289
[19-Feb-2020 15:50:18 Europe/Brussels] PHP Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1289
[19-Feb-2020 15:50:18 Europe/Brussels] PHP Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1329
[19-Feb-2020 15:50:18 Europe/Brussels] PHP Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1349
[Wed Feb 19 15:50:30.607117 2020] [:error] [pid 19396] [client 3.120.253.91:7777] PHP Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1289, referer: https://totoet/index.php?v=d&m=conso&p=panel
[Wed Feb 19 15:50:30.607512 2020] [:error] [pid 19396] [client 3.120.253.91:7777] PHP Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1329, referer: https://totoet/index.php?v=d&m=conso&p=panel
[Wed Feb 19 15:50:30.607690 2020] [:error] [pid 19396] [client 3.120.253.91:7777] PHP Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1349, referer: https://totoet/index.php?v=d&m=conso&p=panel
[Wed Feb 19 15:50:30.613904 2020] [:error] [pid 19396] [client 3.120.253.91:7777] PHP Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1289, referer: https://totoet/index.php?v=d&m=conso&p=panel
[Wed Feb 19 15:50:30.614101 2020] [:error] [pid 19396] [client 3.120.253.91:7777] PHP Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1329, referer: https://totoet/index.php?v=d&m=conso&p=panel
[We
Je te confirme c’est erreur, je suis en train de voir comment les réglée
Cdt
Thibaut
Ajoute moi cette ligne comme ici :
print_r(array_values($taxe));
Ps le message d’erreur va être encore plus impressionnant
TU peux modifier la ligne 1258 par ça
$conso = array('prix_hp' => 0, 'tprix_hc' => 0,'total_hp' => 0, 'total_hc' => 0, 'total' => 0, 'hp' => 0, 'hc' => 0, 'total_hc_ttc' => 0, 'total_hp_ttc' => 0, 'total_abo' => 0, 'total_ttc' => 0, 'total_fixe' => 0, 'total_inte' => 0, 'total_multi_ttc' => 0, 'kwh' => 0, 'total_ht'=> 0);
Les array qui manque vienne pas du $conso mais du $taxe.
Array ( [0] => sem 08 20 [1] => 0 [2] => 0 [3] => 1 [4] => 5.04 [5] => 6.06 [6] => 11.10 [7] => 2020-02-19 [8] => 0.00 [9] => 0.03 [10] => 0.03 [11] => 0.03 [12] => 0.03 [13] => 3 [14] => Contribution Tarifaire d 'Acheminement Electricité (CTA) [15] => 41.32 [16] => 2020-02-19 [17] => 2020 [18] => 2 [19] => 19 [20] => 08 [21] => sem 08 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => sem 08 20 [1] => 1 [2] => 1 [3] => 0 [4] => 5.04 [5] => 6.06 [6] => 11.10 [7] => 2020-02-19 [8] => 13.43 [9] => 0.00 [10] => 0.00 [11] => 0.00 [12] => 0.00 [13] => 6 [14] => test elec [15] => 1 [16] => 2020-02-19 [17] => 2020 [18] => 2 [19] => 19 [20] => 08 [21] => sem 08 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1331
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Array ( [0] => sem 08 20 [1] => 0 [2] => 0 [3] => 1 [4] => 7.26 [5] => 5.54 [6] => 12.80 [7] => 2020-02-18 [8] => 0.00 [9] => 0.03 [10] => 0.03 [11] => 0.03 [12] => 0.03 [13] => 3 [14] => Contribution Tarifaire d 'Acheminement Electricité (CTA) [15] => 41.32 [16] => 2020-02-18 [17] => 2020 [18] => 2 [19] => 18 [20] => 08 [21] => sem 08 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => sem 08 20 [1] => 1 [2] => 1 [3] => 0 [4] => 7.26 [5] => 5.54 [6] => 12.80 [7] => 2020-02-18 [8] => 15.49 [9] => 0.00 [10] => 0.00 [11] => 0.00 [12] => 0.00 [13] => 6 [14] => test elec [15] => 1 [16] => 2020-02-18 [17] => 2020 [18] => 2 [19] => 18 [20] => 08 [21] => sem 08 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1331
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Array ( [0] => sem 08 20 [1] => 0 [2] => 0 [3] => 1 [4] => 20.31 [5] => 15.66 [6] => 35.96 [7] => 2020-02-17 [8] => 0.00 [9] => 0.03 [10] => 0.24 [11] => 0.24 [12] => 0.24 [13] => 3 [14] => Contribution Tarifaire d 'Acheminement Electricité (CTA) [15] => 41.32 [16] => 2020-02-17 [17] => 2020 [18] => 2 [19] => 17 [20] => 08 [21] => sem 08 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => sem 08 20 [1] => 1 [2] => 1 [3] => 0 [4] => 20.31 [5] => 15.66 [6] => 35.96 [7] => 2020-02-17 [8] => 43.51 [9] => 0.00 [10] => 0.00 [11] => 0.00 [12] => 0.00 [13] => 6 [14] => test elec [15] => 1 [16] => 2020-02-17 [17] => 2020 [18] => 2 [19] => 17 [20] => 08 [21] => sem 08 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1331
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Array ( [0] => fév 20 [1] => 1 [2] => 1 [3] => 0 [4] => 104.33 [5] => 129.99 [6] => 234.33 [7] => 2020-02-01 [8] => 283.54 [9] => 0.00 [10] => 0.00 [11] => 0.00 [12] => 0.00 [13] => 6 [14] => test elec [15] => 1 [16] => 2020-02-01 [17] => 2020 [18] => 2 [19] => 1 [20] => 05 [21] => sem 05 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => fév 20 [1] => 0 [2] => 0 [3] => 1 [4] => 104.33 [5] => 129.99 [6] => 234.33 [7] => 2020-02-01 [8] => 0.00 [9] => 0.03 [10] => 0.99 [11] => 0.99 [12] => 0.99 [13] => 3 [14] => Contribution Tarifaire d 'Acheminement Electricité (CTA) [15] => 41.32 [16] => 2020-02-01 [17] => 2020 [18] => 2 [19] => 1 [20] => 05 [21] => sem 05 20 [22] => fév 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1331
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Array ( [0] => 2019 [1] => 1 [2] => 1 [3] => 0 [4] => 638.16 [5] => 836.53 [6] => 1474.69 [7] => 2019-09-01 [8] => 1784.37 [9] => 0.00 [10] => 0.00 [11] => 0.00 [12] => 0.00 [13] => 6 [14] => test elec [15] => 1 [16] => 2019-09-01 [17] => 2019 [18] => 9 [19] => 1 [20] => 35 [21] => sem 35 19 [22] => sep 19 [23] => 19 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => 2019 [1] => 0 [2] => 0 [3] => 1 [4] => 638.16 [5] => 836.53 [6] => 1474.69 [7] => 2019-09-01 [8] => 0.00 [9] => 0.03 [10] => 12.55 [11] => 12.55 [12] => 12.55 [13] => 3 [14] => Contribution Tarifaire d 'Acheminement Electricité (CTA) [15] => 41.32 [16] => 2019-09-01 [17] => 2019 [18] => 9 [19] => 1 [20] => 35 [21] => sem 35 19 [22] => sep 19 [23] => 19 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => 2020 [1] => 1 [2] => 1 [3] => 0 [4] => 275.00 [5] => 349.01 [6] => 624.01 [7] => 2020-01-01 [8] => 755.05 [9] => 0.00 [10] => 0.00 [11] => 0.00 [12] => 0.00 [13] => 6 [14] => test elec [15] => 1 [16] => 2020-01-01 [17] => 2020 [18] => 1 [19] => 1 [20] => 01 [21] => sem 01 20 [22] => jan 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Array ( [0] => 2020 [1] => 0 [2] => 0 [3] => 1 [4] => 275.00 [5] => 349.01 [6] => 624.01 [7] => 2020-01-01 [8] => 0.00 [9] => 0.03 [10] => 12.55 [11] => 12.55 [12] => 12.55 [13] => 3 [14] => Contribution Tarifaire d 'Acheminement Electricité (CTA) [15] => 41.32 [16] => 2020-01-01 [17] => 2020 [18] => 1 [19] => 1 [20] => 01 [21] => sem 01 20 [22] => jan 20 [23] => 20 )
Notice: Undefined index: total_inte in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1290
Notice: Undefined index: kwh in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1331
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
Notice: Undefined variable: total_hp in /var/www/html/plugins/conso/core/class/conso_teleinfo.class.php on line 1351
{"state":"ok","result":{"day_conso":{"prix_hp":0.2298,"tprix_hc":0,"total_hp":1.16,"total_hc":1.01,"total":11.1,"hp":5.04,"hc":6.06,"total_hc_ttc":1.22,"total_hp_ttc":1.4,"total_abo":0.013923287671233,"total_ttc":16.09,"total_fixe":0.03,"total_inte":0,"total_multi_ttc":13.43,"kwh":0,"prix_hc":0.1667,"total_ht":2.17},"yesterday_conso":{"prix_hp":0.2298,"tprix_hc":0,"total_hp":1.67,"total_hc":0.92,"total":12.8,"hp":7.26,"hc":5.54,"total_hc_ttc":1.11,"total_hp_ttc":2.02,"total_abo":0.013923287671233,"total_ttc":18.66,"total_fixe":0.03,"total_inte":0,"total_multi_ttc":15.49,"kwh":0,"prix_hc":0.1667,"total_ht":2.59},"week_conso":{"prix_hp":0.2298,"tprix_hc":0,"total_hp":4.67,"total_hc":2.61,"total":35.97,"hp":20.31,"hc":15.66,"total_hc_ttc":3.16,"total_hp_ttc":5.65,"total_abo":0.097730769230769,"total_ttc":52.66,"total_fixe":0.24,"total_inte":0,"total_multi_ttc":43.51,"kwh":0,"prix_hc":0.1667,"total_ht":7.28},"month_conso":{"prix_hp":0.2298,"tprix_hc":0,"total_hp":23.98,"total_hc":21.67,"total":234.32,"hp":104.33,"hc":129.99,"total_hc_ttc":26.22,"total_hp_ttc":29.02,"total_abo":0.4235,"total_ttc":340.19,"total_fixe":0.99,"total_inte":0,"total_multi_ttc":283.54,"kwh":0.02,"prix_hc":0.1667,"total_ht":45.65},"year_conso":{"prix_hp":0.2298,"tprix_hc":0,"total_hp":209.85,"total_hc":197.62,"total":2098.71,"hp":913.16,"hc":1185.55,"total_hc_ttc":239.12,"total_hp_ttc":253.92,"total_abo":2.541,"total_ttc":3060.1,"total_fixe":25.1,"total_inte":0,"total_multi_ttc":2539.42,"kwh":0.16,"prix_hc":0.1667,"total_ht":407.47},"display":true,"titletype":"HP","title":"Du 2019-09-01 au 2020-09-01 : vous pouvez changer cette date dans l'onglet outils ","titleold":"Du 2018-09-01 au 2019-09-01 : vous pouvez changer cette date dans l'onglet outils "}}
Oui mais s’il sont initialisés à 0 ils ne manqueront plus
Non car tu vient de les déclarer dans le $conso alors que les erreur vienne de $taxe.
Re,
Si ca peut aider, j’ai une machine de test en v4 et j’ai le meme souci.
Oui, mais on les transmets aussi dans $conso. Mais cela dit, tu as aussi raison
Alors tu a des ligne commenter dans le conso_tva.class.php ligne 70 à 72. Peux tu les décomenter,
et ensuite les retirer
print_r(array_values($taxe));
de la classe teleinfo ?