Erreur 500 lors de la synchronisation des équipements

Bonjour

tout d’abord désolé si un sujet est deja ouvert sur ce problème
je viens de reinstaller ma Vm de test

Core en Alpha 4.4
Debian 12
Plugin en version beta

Lorsque je lance la synchronisation, j’ai le message suivant dans le log http_error

0000|[Sun Dec 03 09:17:36.523471 2023] [php:error] [pid 160650] [client 192.168.156.33:55045] PHP Fatal error:  Uncaught Error: Non-static method smartthings::getLocations() cannot be called statically in /var/www/html/plugins/smartthings/core/class/smartthings.class.php:2745\nStack trace:\n#0 /var/www/html/plugins/smartthings/core/ajax/smartthings.ajax.php(36): smartthings::synchronize()\n#1 {main}\n  thrown in /var/www/html/plugins/smartthings/core/class/smartthings.class.php on line 2745, referer: http://192.168.156.38/index.php?v=d&m=smartthings&p=smartthings

A disposition pour faire des tests ou donner des infos supplémentaires

Salut.

Debian 12, PHP8.
Une méthode d’instance appelée en static provoque cette erreur.

J’ai poussé la correction.
Merci pour le retour.

salut,
il doit en rester car j’ai encore l’erreur 500

Non-static method smartthings_display::displayEqLogicThumbnailContainer() cannot be called statically
0008|[Sun Dec 03 09:42:23.815900 2023] [php:error] [pid 1355] [client 192.168.156.33:55607] PHP Fatal error:  Uncaught Error: Non-static method smartthings_tools::translateCapabilityAndCommandToName() cannot be called statically in /var/www/html/plugins/smartthings/core/class/smartthings.class.php:1834\nStack trace:\n#0 /var/www/html/plugins/smartthings/core/class/smartthings.class.php(886): smartthings::createCmdInfo()\n#1 /var/www/html/plugins/smartthings/core/class/smartthings.class.php(814): smartthings::getDevicesInfo()\n#2 /var/www/html/plugins/smartthings/core/class/smartthings.class.php(2755): smartthings::getDevices()\n#3 /var/www/html/plugins/smartthings/core/ajax/smartthings.ajax.php(36): smartthings::synchronize()\n#4 {main}\n  thrown in /var/www/html/plugins/smartthings/core/class/smartthings.class.php on line 1834, referer: http://192.168.156.232/index.php?v=d&m=smartthings&p=smartthings

Je ne peux plus accéder a la page du plugin

Dans le centre de message, j’ai

smartthings Erreur sur smartthings::update() : Non-static method smartthings_tools::translateCapabilityAndCommandToName() cannot be called statically [Log smartthings](http://192.168.156.232/index.php?v=d&p=log&logfile=smartthings)
smartthings Erreur sur la fonction cron5 du plugin : Non-static method smartthings_tools::translateCapabilityAndCommandToName() cannot be called statically [Log smartthings](http://192.168.156.232/index.php?v=d&p=log&logfile=smartthings)
smartthings Erreur sur smartthings::update() : Non-static method smartthings_tools::translateCapabilityAndCommandToName() cannot be called statically

Corrigé les 2 et poussé.

J’ai une nouvelle erreur

Non-static method smartthings::getNbEqLogic() cannot be called statically

je n’ai rien dans les logs par contre

Beaucoup d’oublis :stuck_out_tongue_closed_eyes: quel nul :sweat_smile:

Corrigé aussi.

J’ai ma vm de test qui a planté complément
Je la refais et je reviens vers toi