ALPHA : PHP Warning: Undefined array key "last_event" - Debian 12 + Suppression bouton Community

Bonjour,

j’ai ce warning dans le log http.error

0000|[Fri Sep 20 16:25:37.577147 2024] [php:warn] [pid 1776780:tid 1776780] [client 127.0.0.1:40948] PHP Warning:  Undefined array key "last_event" in /var/www/html/plugins/philipsHue/core/class/philipsHue.class.php on line 885
0001|[Fri Sep 20 16:25:37.588031 2024] [php:warn] [pid 1776780:tid 1776780] [client 127.0.0.1:40948] PHP Warning:  Undefined array key "last_event" in /var/www/html/plugins/philipsHue/core/class/philipsHue.class.php on line 885
0002|[Fri Sep 20 16:25:37.601450 2024] [php:warn] [pid 1776780:tid 1776780] [client 127.0.0.1:40948] PHP Warning:  Undefined array key "last_event" in /var/www/html/plugins/philipsHue/core/class/philipsHue.class.php on line 885
0003|[Fri Sep 20 16:25:37.615018 2024] [php:warn] [pid 1776780:tid 1776780] [client 127.0.0.1:40948] PHP Warning:  Undefined array key "last_event" in /var/www/html/plugins/philipsHue/core/class/philipsHue.class.php on line 885

Le bouton communauty ne fonctionne plus, vu que son fonctionnement a changé il faudrait le supprimer


Informations Jeedom

Core : 4.5 (alpha)
DNS Jeedom : oui

Plugin : Philips Hue
Version : 2024-09-21 01:06:03 (beta)
Statut Démon : Démarré - (2024-09-21 08:29:08)

A disposition pour toutes infos supplémentaires

Bonjour,
Merci pour le retour pour le warning ca sera corrigé dans la beta et stable de demain.

Pour le bouton community je comprends pas trop, je sais pas comment il marche mais il me semble que ca n’a pas changé.

il faut supprimer le bouton ici car il ne fonctionne plus, il a été intégré ici

le fonctionnement a été changé https://github.com/jeedom/core/commits?author=Salvialf&after=24ccd904bf364341865bf593de36b5ea9d567960+69

https://community.jeedom.com/t/creer-un-post-community-quasi-automatiquement/109880/30?u=jag

Ok compris merci ca sera bon dans la beta et stable de demain

1 « J'aime »

Ou simplement adapter le js pour qu il soit dispo des 2 cote…

 function xxxxx() {

  const infoPlugin = await $.post({
    url: "core/ajax/plugin.ajax.php",
    data: {
      action: 'createCommunityPost',
      type: eqType
    },
    cache: false,
    dataType: 'json',
    async: false,
  });

  if (infoPlugin.state != 'ok') {
    $.fn.showAlert({
      message: infoPlugin.result,
      level: 'danger'
    });
    return;
  }

  var element = document.createElement('a');

  element.setAttribute('href', infoPlugin.result.url);
  element.setAttribute('target', '_blank');

  element.style.display = 'none';
  document.body.appendChild(element);

  element.click();

  document.body.removeChild(element);

}

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