(BUG) PHP Deprecated: Non-static method DB::compare*

Bonjour,

J’ai installé une nouvelle VM avec Debian Buster « Linux hbimsg 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux [10.3] », Jeedom 4.0.45 et PHP 7.3.14-1~deb10u1
Lors de la restauration du backup de la VM source, j’ai reçu environ 330 lignes avec des messages d’erreur d’appel de fonction.
VM source: Stretch, jeedom 4.0.45 et PHP 7.0.33
En voici un court extrait.

Check jeedom database...
PHP Deprecated:  Non-static method DB::compareAndFix() should not be called statically in /var/www/html/install/consistency.php on line 51
PHP Deprecated:  Non-static method DB::compareDatabase() should not be called statically in /var/www/html/core/class/DB.class.php on line 512
PHP Deprecated:  Non-static method DB::compareTable() should not be called statically in /var/www/html/core/class/DB.class.php on line 587
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637
PHP Deprecated:  Non-static method DB::prepareIndexCompare() should not be called statically in /var/www/html/core/class/DB.class.php on line 668
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareIndex() should not be called statically in /var/www/html/core/class/DB.class.php on line 676
PHP Deprecated:  Non-static method DB::compareTable() should not be called statically in /var/www/html/core/class/DB.class.php on line 587
PHP Deprecated:  Non-static method DB::compareField() should not be called statically in /var/www/html/core/class/DB.class.php on line 637

Après avoir modifié dans le fichier /core/class/DB.class.php, toutes les déclarations de fonctions sous DB ANALYZER en « public static function », les messages d’erreurs disparaissent.

Cordialement

2 « J'aime »

Bonjour,

Merci pour le retour ca sera corrigé dans les prochaines stable

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