PHP Warning: Free_CreateTV.class.php et Free_Refresh.class.php

Bonjour,
Lorsque je fais un « Scan équipements standards » j’ai cette erreur dans le log http.error :

[Tue Apr 13 17:35:51.530985 2021] [php7:notice] [pid 20434] [client 192.168.1.XX:15831] PHP Notice:  Undefined index: result in /var/www/html/plugins/Freebox_OS/core/class/Free_API.class.php on line 413, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS&id=Freebox_OS
[Tue Apr 13 17:35:51.531092 2021] [php7:warn] [pid 20434] [client 192.168.1.XX:15831] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/plugins/Freebox_OS/core/class/Free_CreateTV.class.php on line 58, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS&id=Freebox_OS

J’ai une Freebox Delta mais je n’ai pas de Player ni d’option TV.

  • Matériel :
    • Synology: DS218+
    • VMM: debian-10.9.0-amd64
    • HDD : 11.66 GB / 20 GB (58.31%)
    • Coeurs : 2.
    • RAM : 2 GB.
    • PHP 7.3.27-1~deb10u1 (cli) (built: Feb 13 2021 16:31:40) ( NTS )
    • mariadb Ver 15.1 Distrib 10.3.27-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
    • Server version: Apache/2.4.38 (Debian) Server built: 2020-08-25T20:08:29

  • Jeedom
    • Version : 4.1.22
    • Source : default
    • Branche : V4-stable
    • Système : diy

Hello
tu as quelques version du plugin ?

Bonjour.
Freebox_OS stable 2021-02-16 01:08:14

as tu moyen de mettre le plugin en mode debug
et me donner les lignes après cette ligne

┌───────── Ajout des commandes : Player

J’ai besoin du résultat pour ajouter un contrôle

merci par avance

Voila.

[2021-04-13 20:13:42][DEBUG] : >───────── Type de box compatible pour modifier les réglages de l'afficheur : fbxgw7r
[2021-04-13 20:13:42][DEBUG] : ┌───────── Ajout des commandes : Player
[2021-04-13 20:13:42][DEBUG] : │ Application des Widgets ou Icônes pour le core V4
[2021-04-13 20:13:42][DEBUG] : ┌───────── Début de Mise à jour
[2021-04-13 20:13:42][DEBUG] : │ [Freebox Request Connexion] : GET sur la l'adresse mafreebox.freebox.fr/api/v8/player(null)
[2021-04-13 20:13:42][DEBUG] : │ [Freebox Request Result] : {"success":true}
[2021-04-13 20:13:42][DEBUG] : └─────────
[2021-04-13 20:13:42][DEBUG] : └─────────

Je reste dispo si besoin.

merci
je vais regarder dans la semaine ou dans le week-end

Ya pas d’urgence c’est juste qu’en ce moment je traque les erreurs de logs.

Hello
J’ai fait une modification dans la beta, mais je ne suis pas sûr car je n’ai pas le cas.

Peut-tu tester et me dire ? merci

Bonjour,
Ok j’installe et je fais un retour.
Merci.

Je n’ai plus le [php7:warn] mais toujours le [php7:notice] ce qui est une bonne chose :slight_smile:

[Sun Apr 18 12:12:39.878605 2021] [php7:notice] [pid 5966] [client 192.168.1.XX:2201] PHP Notice:  Undefined index: result in /var/www/html/plugins/Freebox_OS/core/class/Free_API.class.php on line 403, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS

Pour info ça fonctionne en ajoutant ce test (in /var/www/html/plugins/Freebox_OS/core/class/Free_API.class.php on line 403) :

 if (isset($result['result'])) { 
    return $result['result']; 
 }

Je n’ai pas poussé les tests très loin non plus …
Je reste disponible si besoin, test, debug, logs, etc …
Bonne journée.

Hello
oui j’ai vu et je l’ai traité dans mon alpha mais différemment pour éviter d’aller modifier toute les actions liés a ce résultat

if (isset($result['result'])) {
 return $result['result'];
                    } else {
                        $result = null;
                        return $result;
                    }

merci de ton retour
se sera disponible dans la prochaine beta

Super merci pour la réactivité et le maintien du plugin.

Merci de ton retour positif

Je te dis quand je publie la beta. Mais j’ai un bug actuel que je n’arrive a résoudre

Pas de stress ce n’est pas bloquant.
Si tu as besoin d’aide n’hésite pas.

1 « J'aime »

Hello
J’ai fait les modifications a tester avec la beta de demain

Super merci, je te ferai un retour.

Hello
Peut-tu me dire si c’est ok avec les dernières mises à jour bêta du plugin

Merci

Bonjour,
Ok je test ca au plus vite.

Je n’ai plus l’erreur d’origine. (ligne 413)
Par contre, j’ai un problème de variable « id » non définie:

[Tue May 04 09:16:59.687741 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.687884 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.687914 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.687958 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.687987 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.688016 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692433 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692474 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692503 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692611 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692642 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692671 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692703 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692XX6 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.692795 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.706417 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.706486 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.706515 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.706548 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.706577 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.706606 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790440 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790530 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790571 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790605 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790633 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790661 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790692 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790751 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790779 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790810 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790895 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790927 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790959 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.790987 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.791015 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.791058 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 231, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.791087 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS
[Tue May 04 09:16:59.791231 2021] [php7:notice] [pid 4736] [client 192.168.1.XX:30809] PHP Notice:  Undefined variable: id in /var/www/html/plugins/Freebox_OS/core/class/Free_Refresh.class.php on line 232, referer: http://192.168.1.XX/index.php?v=d&m=Freebox_OS&p=Freebox_OS

Hello

Pour la ligne 231/232 de Free_Refresh.class, il y a un soucis. Mais j’ai trouvé d’ou cela vient

Par contre

[Tue May 04 09:15:41.560988 2021] [php7:notice] [pid 28510] [client 192.168.1.72:30793] PHP Notice:  Undefined index: result in /var/www/html/plugins/Freebox_OS/core/class/Free_API.class.php on line 413, referer: http://192.168.1.76/index.php?v=d&m=Freebox_OS&p=Freebox_OS

la ligne dans le code est vide, donc je ne comprend pas

c’est toujours la même erreur c’est encore lié

Peut-tu me donner le niveau de log Général dans la configuration Jeedom

Merci