WorxLandroidS - Error 500

Bonjour, j’ai le problème d’erreur 500 sur mon dashboard, j’ai réussi à le faire fonctionner une fois le plug in et après toujours cette erreur persistante, j’ai tenté:

  • Réinstallation du plug in en normal, en beta
  • Réinstallation des dépendances

Voici ma version de Jeedom 4.1.20 / Linux Jeedom 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux [10.8] / je suis sous VM Proxmox

  • Je précise que l’application mobile Landroid fonctionne j’ai les remontées
[Sun Mar 21 23:49:46.402488 2021] [php7:error] [pid 19337] [client 192.168.1.62:62845] PHP Fatal error:  Uncaught Error: Call to a member function add() on bool in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php:1162
Stack trace:
#0 /var/www/html/core/ajax/object.ajax.php(125): worxLandroidS->toHtml('dashboard')
#1 /var/www/html/core/ajax/object.ajax.php(171): jeeAjax_objectToHtml('4', 'dashboard', 'all', 'all', '')
#2 {main}
thrown in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php on line 1162, referer: http://192.168.1.20/index.php?v=d&p=dashboard
[Mon Mar 22 07:56:22.966009 2021] [php7:error] [pid 3107] [client 192.168.1.62:63416] PHP Fatal error:  Uncaught Error: Call to a member function add() on bool in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php:1162
Stack trace:
#0 /var/www/html/core/ajax/object.ajax.php(125): worxLandroidS->toHtml('dashboard')
#1 /var/www/html/core/ajax/object.ajax.php(171): jeeAjax_objectToHtml('4', 'dashboard', 'all', 'all', '')
#2 {main}
thrown in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php on line 1162, referer: http://192.168.1.20/index.php?v=d&p=dashboard
warning: commands will be executed using /bin/sh
job 41 at Mon Mar 22 08:04:00 2021
[Mon Mar 22 08:06:58.786335 2021] [php7:error] [pid 23012] [client 192.168.1.62:63554] PHP Fatal error:  Uncaught Error: Call to a member function add() on bool in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php:1162
Stack trace:
#0 /var/www/html/core/ajax/object.ajax.php(125): worxLandroidS->toHtml('dashboard')
#1 /var/www/html/core/ajax/object.ajax.php(171): jeeAjax_objectToHtml('4', 'dashboard', 'all', 'all', '')
#2 {main}
thrown in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php on line 1162, referer: http://192.168.1.20/index.php?v=d&p=dashboard![Capture d’écran 2021-03-22 082146|590x224](upload://vtYZoJbXGOUu9Nlzt5vDyawBe5z.png) 

Les logs d’install des dépendances

Début d'installation des dépendances
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (10.2019051400).
php-pear is already the newest version (1:1.10.6+submodules+notgz-1.1+deb10u1).
The following packages were automatically installed and are no longer required:
  python3-asn1crypto python3-cffi-backend python3-entrypoints
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
--2021-03-22 08:32:20--  http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3167 (3.1K) [application/octet-stream]
Saving to: 'mosquitto-repo.gpg.key.7'

     0K ...                                                   100%  334M=0s

2021-03-22 08:32:20 (334 MB/s) - 'mosquitto-repo.gpg.key.7' saved [3167/3167]

Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://deb.nodesource.com/node_12.x buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libmosquitto-dev is already the newest version (1.5.7-1+deb10u1).
mosquitto is already the newest version (1.5.7-1+deb10u1).
mosquitto-clients is already the newest version (1.5.7-1+deb10u1).
The following packages were automatically installed and are no longer required:
  python3-asn1crypto python3-cffi-backend python3-entrypoints
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
php7.3-dev is already the newest version (7.3.27-1~deb10u1).
The following packages were automatically installed and are no longer required:
  python3-asn1crypto python3-cffi-backend python3-entrypoints
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
Fin installation des dépendances

Je vois bien la création de ma tondeuse avec les bonnes infos et après pas de remontée et donc cette erreur 500

Bonjour,

Est-ce que la log en mode debug donne plus d’info?

Bonjour, Idem de mon coté. Les logs du plugins en debug ne montrent rien. Je communique bien avec le Cloud Worx mais l’affichage de l’objet sur le dashboard abouti à une erreur 500

L’erreur que je trouve : PHP Fatal error: Uncaught Error: Call to a member function getId() on bool in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php:1146

Sachant que le code du plugin est le suivant :

Ma page santé:

J’ai relancé les dépendances, redémarré le deamon mais toujours le pb.
Auriez-vous une idée svp ?

A priori quand je vois le code, si je comprend bien: Tu devrais avoir des commandes « on_0 », « on_1 » … à « on_6 » dans ton équipement. Hors je suppose que ces commandes n’existent pas toutes. D’où l’erreur.

Essaye de re-sauvegarder ton équipement :

Puis, dans ses commandes, fais un refreshValue en cliquant sur test

Des fois ça aide…

Effectivement un refreshValue et sauvegarde et ça marche :roll_eyes: :roll_eyes:

Super !
Passe le sujet en résolu, ça pourrait servir à d’autres.

Merci à vous tous pour votre aide et votre patience.

Hélas pour moi, cela ne change rien, j’ai toujours l’erreur 500

Voici l’erreur : PHP Fatal error: Uncaught Error: Call to a member function getConfiguration() on bool in /var/www/html/plugins/worxLandroidS/core/class/worxLandroidS.class.php:680

Voici la og du plugin en mode debug lors d’un refresh value

[2021-03-23 21:29:56][DEBUG] : Eqlogicname: Wall-e
[2021-03-23 21:29:56][DEBUG] : Publication du message refreshValue 1
[2021-03-23 21:29:56][DEBUG] : 16 : Client android-uuid/v17194ab28 sending CONNECT
[2021-03-23 21:29:56][DEBUG] : 16 : Client android-uuid/v17194ab28 sending SUBSCRIBE (Mid: 1, Topic: PRM100/98D8634653B0/commandOut, QoS: 0)
[2021-03-23 21:29:56][DEBUG] : Subscribe to mqtt a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com msg {}
[2021-03-23 21:29:56][DEBUG] : 16 : Client android-uuid/v17194ab28 sending PUBLISH (d0, q0, r0, m2, 'PRM100/98D8634653B0/commandIn', ... (2 bytes))
[2021-03-23 21:29:56][DEBUG] : 16 : Client android-uuid/v17194ab28 received CONNACK (0)
[2021-03-23 21:29:56][DEBUG] : Connexion à Mosquitto avec code 0 Connection Accepted.
[2021-03-23 21:29:56][DEBUG] : 16 : Client android-uuid/v17194ab28 received SUBACK
[2021-03-23 21:29:56][DEBUG] : Subscribe to topics
[2021-03-23 21:29:58][DEBUG] : 16 : Client android-uuid/v17194ab28 received PUBLISH (d0, q0, r0, m0, 'PRM100/98D8634653B0/commandOut', ... (768 bytes))
[2021-03-23 21:29:58][DEBUG] : Message {"cfg":{"id":1,"lg":"it","tm":"21:29:56","dt":"23/03/2021","sc":{"m":1,"distm":0,"ots":{"bc":0,"wtm":30},"p":0,"d":[["10:00",360,0],["10:00",360,1],["10:00",360,0],["10:00",360,0],["10:00",360,1],["10:00",360,0],["10:00",360,0]],"dd":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[0,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":180,"sn":"20193019840301304583","modules":{"US":{"enabled":1}}},"dat":{"mac":"98D8634653B0","fw":3.20,"fwb":1,"bt":{"t":11.8,"v":19.56,"p":96,"nr":215,"c":1,"m":1},"dmp":[-2.4,0.8,87.1],"st":{"b":20979,"d":351865,"wt":22327,"bl":149},"ls":1,"le":0,"lz":6,"rsi":-75,"lk":1,"act":1,"tr":0,"conn":"wifi","rain":{"s":0,"cnt":0},"time":{"r":0,"l":0},"modules":{"US":{"stat":"ok"}}}} sur PRM100/98D8634653B0/commandOut
[2021-03-23 21:29:58][DEBUG] : 16 : Client android-uuid/v17194ab28 sending DISCONNEC

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