PHP Warning: Undefined array key 1 in /var/www/html/core/class/cmd.class.php

Bonjour,
J’ai dans les log « http.error » ces messages : (depuis les dernières MAJ de Zigbeelinker)

Merci

0008|[Tue May 26 16:07:11.101509 2026] [php:warn] [pid 1568:tid 1568] [client 192.168.30.65:40308] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0009|[Tue May 26 16:07:11.101555 2026] [php:warn] [pid 1568:tid 1568] [client 192.168.30.65:40308] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682

Salut,

Même punition que pour l’autre sujet : merci de ne pas choisir une catégorie du core quand le souci vient d’un plugin et quand tu connais le plugin de choisir son tag stp.

Bonsoir,
C’est bien marqué « core » non et j’en ai des pages et des pages !

092:tid 57092] [client 192.168.30.65:13247] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0025|[Tue May 26 17:09:02.669602 2026] [php:warn] [pid 57092:tid 57092] [client 192.168.30.65:13247] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0026|[Tue May 26 17:09:29.034558 2026] [php:warn] [pid 57092:tid 57092] [client 192.168.30.65:13247] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0027|[Tue May 26 17:09:29.034594 2026] [php:warn] [pid 57092:tid 57092] [client 192.168.30.65:13247] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0028|[Tue May 26 17:09:50.814633 2026] [php:warn] [pid 57091:tid 57091] [client 192.168.30.65:13246] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0029|[Tue May 26 17:09:50.814669 2026] [php:warn] [pid 57091:tid 57091] [client 192.168.30.65:13246] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0030|[Tue May 26 17:10:03.134351 2026] [php:warn] [pid 57092:tid 57092] [client 192.168.30.65:13247] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0031|[Tue May 26 17:10:03.134354 2026] [php:warn] [pid 57090:tid 57090] [client 192.168.30.65:13322] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0032|[Tue May 26 17:10:03.134351 2026] [php:warn] [pid 57091:tid 57091] [client 192.168.30.65:13246] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0033|[Tue May 26 17:10:03.134389 2026] [php:warn] [pid 57092:tid 57092] [client 192.168.30.65:13247] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0034|[Tue May 26 17:10:03.134397 2026] [php:warn] [pid 57090:tid 57090] [client 192.168.30.65:13322] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0035|[Tue May 26 17:10:03.134403 2026] [php:warn] [pid 57091:tid 57091] [client 192.168.30.65:13246] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0036|[Tue May 26 17:11:03.095026 2026] [php:warn] [pid 57091:tid 57091] [client 192.168.30.65:13246] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0037|[Tue May 26 17:11:03.095064 2026] [php:warn] [pid 57091:tid 57091] [client 192.168.30.65:13246] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0038|[Tue May 26 17:11:23.386366 2026] [php:warn] [pid 57331:tid 57331] [client 192.168.30.65:13326] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0039|[Tue May 26 17:11:23.386403 2026] [php:warn] [pid 57331:tid 57331] [client 192.168.30.65:13326] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0040|[Tue May 26 17:12:03.081494 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0041|[Tue May 26 17:12:03.081531 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0042|[Tue May 26 17:13:02.736820 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0043|[Tue May 26 17:13:02.736857 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0044|[Tue May 26 17:14:03.559789 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0045|[Tue May 26 17:14:03.559825 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0046|[Tue May 26 17:15:02.305087 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0047|[Tue May 26 17:15:02.305135 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0048|[Tue May 26 17:15:03.352581 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0049|[Tue May 26 17:15:03.352615 2026] [php:warn] [pid 57093:tid 57093] [client 192.168.30.65:13331] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0050|[Tue May 26 17:15:04.329247 2026] [php:warn] [pid 59823:tid 59823] [client 192.168.30.65:61808] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0051|[Tue May 26 17:15:04.329298 2026] [php:warn] [pid 59823:tid 59823] [client 192.168.30.65:61808] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0052|[Tue May 26 17:16:03.155058 2026] [php:warn] [pid 59823:tid 59823] [client 192.168.30.65:61808] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0053|[Tue May 26 17:16:03.155093 2026] [php:warn] [pid 59823:tid 59823] [client 192.168.30.65:61808] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1682
0054|[Tue May 26 19:01:03.333791 2026] [php:warn] [pid 57116:tid 57116] [client 192.168.30.65:27287] PHP Warning:  Undefined array key 1 in /var/www/html/core/class/cmd.class.php on line 1678
0055|[Tue May 26 19:01:03.333829 2026] [php:warn] [pid 5711

Tu dis que c’est suite a la mise a jour de zigbeelinker.
Un plugin ne peut pas modifier le core, si des erreurs arrivent sur des fichiers du core apres la mise à jour d’un plugin c’est que probablement ce dernier n’appelle pas correctement le core.

Peut être mais là je n’y peux rien.

Je comprends pas ta remarque.

C’est juste que c’est pas parce que l’erreur est remonté par le core que c’est le core le fautif.
Si j’appelle mal les fonctions du core, ce n’est pas parce que les fonctions du core sont buggés mais que mon appel l’est.

Bref ça n’appelait pas de commentaire mis à part que si réellement les erreurs arrivent avec la maj d’un plugin elles ne viennent pas du core c’est tout d’où le tag de ton message dans la bonne catégorie.

1 « J'aime »

Désolé mais je n’y comprends plus rien.
Ca restera comme ça et puis c’est tout.
Mais c’est pas propre d’avoir des pages et des pages d’erreurs.

Cdlt

On se calme, je n’ai pas dit que ta remontée ne méritait pas d’attention mais que ça doit être un problème plugin et non core.

Un warning est une erreur certes mais pas une erreur bloquante.
En php l’erreur bloquante existe et la page s’arrete dans son exécution ce qui n’est pas le cas ici.

Un warning peut indiquer plein de choses sans que ce soit « grave » pour le fonctionnement de ton installation.
C’est bien de les remonter aux développeurs pour qu’elles soient corrigés, ce n’est pas pour autant qu’il y a urgence à le faire.

1 « J'aime »
`if ($this->getConfiguration('listValue', '') != '') {
	$listOption = '';
	$elements = explode(';', $this->getConfiguration('listValue', ''));
	$foundSelect = false;
	foreach ($elements as $element) {
		$coupleArray = explode('|', $element);
		$cmdValue = $this->getCmdValue();
		if (is_object($cmdValue) && $cmdValue->getType() == 'info') {
			if ($cmdValue->execCmd() == $coupleArray[0] || $cmdValue->execCmd() == $coupleArray[1]) {
				$listOption .= '<option value="' . $coupleArray[0] . '" selected>' . $coupleArray[1] . '</option>';
				$foundSelect = true;
			} else {
				$listOption .= '<option value="' . $coupleArray[0] . '">' . $coupleArray[1] . '</option>';
			}
		} else {`

Quand on regarde le code jeedom

c’est sur ces lignes : $listOption .= '<option value="' . $coupleArray[0] . '" selected>' . $coupleArray[1] . '</option>';

je pense que tu as des commandes “Liste” qui ont des valeurs mal renseignées :

image

c’est à dire qu’il faut toujours xxx|yyy (avec la barre |) sinon cela provoque l’erreur

Merci,

Je vais chercher des commandes liste mal renseignées

Cdlt

1 « J'aime »