Demande d'aide sur erreur PHP Warning dans le http.error

Bonjour,

J’ai des erreurs dans les logs http.error mais je n’arrive pas à identifier la cause.
Je pense à un scenario mais je n’ai pas d’autres logs en erreur et l’analyse en temps réel ne m’a pas permis de trouver.

0016|[Tue Dec 23 22:29:10.101831 2025] [php:warn] [pid 2598661:tid 2598661] [client 192.168.1.19:58524] PHP Warning:  Undefined array key "actionCheckCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 410
0017|[Tue Dec 23 22:29:10.101951 2025] [php:warn] [pid 2598661:tid 2598661] [client 192.168.1.19:58524] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 410
0018|[Tue Dec 23 22:29:10.101978 2025] [php:warn] [pid 2598661:tid 2598661] [client 192.168.1.19:58524] PHP Warning:  Undefined array key "jeedomPreExecCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 424
0019|[Tue Dec 23 22:29:10.102022 2025] [php:warn] [pid 2598661:tid 2598661] [client 192.168.1.19:58524] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 424
0020|[Tue Dec 23 23:09:16.945383 2025] [php:warn] [pid 2724105:tid 2724105] [client 192.168.1.19:58628] PHP Warning:  Undefined array key "actionCheckCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 410
0021|[Tue Dec 23 23:09:16.945473 2025] [php:warn] [pid 2724105:tid 2724105] [client 192.168.1.19:58628] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 410
0022|[Tue Dec 23 23:09:16.945498 2025] [php:warn] [pid 2724105:tid 2724105] [client 192.168.1.19:58628] PHP Warning:  Undefined array key "jeedomPreExecCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 424
0023|[Tue Dec 23 23:09:16.945521 2025] [php:warn] [pid 2724105:tid 2724105] [client 192.168.1.19:58628] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 424
0024|[Tue Dec 23 23:44:08.583122 2025] [php:warn] [pid 2724109:tid 2724109] [client 192.168.1.19:58802] PHP Warning:  Undefined array key "actionCheckCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 410
0025|[Tue Dec 23 23:44:08.585023 2025] [php:warn] [pid 2724109:tid 2724109] [client 192.168.1.19:58802] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 410
0026|[Tue Dec 23 23:44:08.585957 2025] [php:warn] [pid 2724109:tid 2724109] [client 192.168.1.19:58802] PHP Warning:  Undefined array key "jeedomPreExecCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 424
0027|[Tue Dec 23 23:44:08.586913 2025] [php:warn] [pid 2724109:tid 2724109] [client 192.168.1.19:58802] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 424
0028|[Tue Dec 23 23:44:59.857682 2025] [php:warn] [pid 2478191:tid 2478191] [client 192.168.1.19:58806] PHP Warning:  Undefined array key "actionCheckCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 410
0029|[Tue Dec 23 23:44:59.859641 2025] [php:warn] [pid 2478191:tid 2478191] [client 192.168.1.19:58806] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 410
0030|[Tue Dec 23 23:44:59.860557 2025] [php:warn] [pid 2478191:tid 2478191] [client 192.168.1.19:58806] PHP Warning:  Undefined array key "jeedomPreExecCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 424
0031|[Tue Dec 23 23:44:59.861458 2025] [php:warn] [pid 2478191:tid 2478191] [client 192.168.1.19:58806] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 424
0032|[Tue Dec 23 23:45:45.824431 2025] [php:warn] [pid 2739945:tid 2739945] [client 192.168.1.19:58809] PHP Warning:  Undefined array key "actionCheckCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 410
0033|[Tue Dec 23 23:45:45.828157 2025] [php:warn] [pid 2739945:tid 2739945] [client 192.168.1.19:58809] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 410
0034|[Tue Dec 23 23:45:45.828245 2025] [php:warn] [pid 2739945:tid 2739945] [client 192.168.1.19:58809] PHP Warning:  Undefined array key "jeedomPreExecCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 424
0035|[Tue Dec 23 23:45:45.828271 2025] [php:warn] [pid 2739945:tid 2739945] [client 192.168.1.19:58809] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 424
0036|[Wed Dec 24 00:00:10.899947 2025] [mpm_prefork:notice] [pid 2901174:tid 2901174] AH00171: Graceful restart requested, doing restart
0037|[Wed Dec 24 00:00:11.189172 2025] [mpm_prefork:notice] [pid 2901174:tid 2901174] AH00163: Apache/2.4.65 (Debian) OpenSSL/3.0.17 configured -- resuming normal operations
0038|[Wed Dec 24 00:00:11.203748 2025] [core:notice] [pid 2901174:tid 2901174] AH00094: Command line: '/usr/sbin/apache2'
0039|[Wed Dec 24 10:01:07.314497 2025] [php:warn] [pid 2935412:tid 2935412] [client 192.168.1.31:53404] PHP Warning:  Undefined array key "actionCheckCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 410
0040|[Wed Dec 24 10:01:07.314596 2025] [php:warn] [pid 2935412:tid 2935412] [client 192.168.1.31:53404] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 410
0041|[Wed Dec 24 10:01:07.314624 2025] [php:warn] [pid 2935412:tid 2935412] [client 192.168.1.31:53404] PHP Warning:  Undefined array key "jeedomPreExecCmd" in /var/www/html/core/ajax/scenario.ajax.php on line 424
0042|[Wed Dec 24 10:01:07.314647 2025] [php:warn] [pid 2935412:tid 2935412] [client 192.168.1.31:53404] PHP Warning:  foreach() argument must be of type array|object, null given in /var/www/html/core/ajax/scenario.ajax.php on line 424

une idée pour trouver l’origine ?

hello,

tu as combien de scénarios?

Dans « outils > scénarios » bouton « vue d’ensemble »

tu as la dernière exécution, tu pourras peut être lier la dernière erreur http.error avec le scénario

poste ensuite le scénario incriminé si tu as un doute sur la résolution :wink:

Peut-être avec ce scénario :

2 « J'aime »

Bonjour,
Bon j’ai trouvé avec un peu de persévérence…pas évident car les erreurs arrivent non pas quand un scénario s’exécute, mais c’est juste le fait de l’ouvrir qui génère l’erreur.
Je pense que l’origine du problème est lié au cache suite à la migration en 4.5 mais je peux me tromper.
En fait les scénarios qui génèrent l’erreur ont tous une action de déclenchement PostExec paramètrée dans des virtuels:

exemple scénario

exemple virtuel

La solution est très simple, il suffit d’aller dans le virtuel qui génère l’erreur menu configuration et de cliquer sur « Sauvegarder »
Sans rien faire de plus, l’ouverture du scénario ne générera plus de warning PHP

PS: une solution plus « propre » consiste à supprimer l’action après execution de la commande dans le virtuel pour ajouter la dite commande dans un déclencheur provoqué du scénario. Cela dit, ca fonctionne par démarrer un scénario, mais pas pour l’activer ou le désactiver.

1 « J'aime »

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