Jeemate erreur javascript

Bonsoir.

Un souci signalé en son temps sans résolution à ce jour.

Matériel : Rpi3B+, Jeedom 4062, Jeemate apk 089+13.

Plugin: pour Debug fonction le message d’erreur suivant sur toutes les commandes (en cause ligne 19 d’un fichier).

Ci-dessous donc le message d’erreur et à la suite le fichier concerné.

D’où mon interrogation: s’agit il d’une anomalie

  • inhérente à Jeemate ?
  • relève t elle du core Jeedom ?
  • autre (navigateur chromium … ) ?

Et surtout y a t il une rectification possible ?

Fichier	                                                                                                                                          Ligne	Message
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function
https://www.xxxxxxx.dyndns.org/core/php/getResource.php?file=plugins/jeemate/desktop/js/jeeDebug.js&md5=b6d716d2eabeb05c3ee82fc7c274078d&lang=fr_FR	19	Uncaught TypeError: $.clearDivContent is not a function

FICHIER

/* This file is part of Jeedom.
*
* Jeedom is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Jeedom is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Jeedom. If not, see <http://www.gnu.org/licenses/>.
*/
let json = null;

$(".li_fun").on('click', function() {
    $.clearDivContent('pre_globalfun')
    $(".li_fun").removeClass('active')
    $(this).addClass('active')

    let display = $('#pre_globalfun');
    var jee_data = {function:$(this).attr('data-fun')};

    $.ajax({
        type: "POST",
        url: "plugins/jeemate/core/ajax/jeemate.ajax.php",
        data: {
            action: "jeeDebug",
            data: jee_data
        },
        dataType: 'json',
        error: function (request, status, error) {
            handleAjaxError(request, status, error);
        },
        success: function (data) {
            let object = data.result.object;
            json = data.result.json;
            const str = JSON.stringify(object, null, 4);
            display.html(str)
        },
    });

})

$('#bt_resetFunFilterSearch').on('click', function () {
    $('#in_searchFunFilter').val('').keyup()
})

$('#bt_resetGlobalFunSearch').on('click', function () {
    $('#in_searchGlobalFun').val('').keyup()
})

$('#bt_downloadFun').click(function() {
    const blob = new Blob([json], {
        type: "text/plain;charset=utf-8"
    });
    const file = $('#ul_object').find('li.active').attr('data-fun');
    saveAs(blob, file+".json");
})

$(function() {
    $('#div_displayFunList .li_fun').first().trigger('click')
})

Hello,

Normalement avec la dernière version (Beta) sa devrais être corrigée,
Je te laisse me faire un retours.

Si tu a toujours un problème tu pourras aussi me dire quel navigateur tu utilise ainsi que sa version ?

Cordialement
Thibaut

Bonsoir.

Pas de changement (passé à dernière version plugin et app béta 090+20).

J’utilise le navigateur chromium dont version ci dessous:

Version 88.0.4324.187 (Build officiel) Built on Raspbian , running on Raspbian 10 (32 bits)

Tu voies le problème ?

Plugin Beta ou pas ?

Cordialement
Thibaut

Plugin Beta.

Ok, je vais chercher encore.

Cordialement
Thibaut

Bonsoir.
Merci de te préoccuper de ce souci.
Une info supplémentaire : quand je contrôle mes packages chromium répond NOK et après lancement de la mise à jour j’ai l’erreur suivante:

+ sudo apt update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 https://deb.nodesource.com/node_12.x stretch InRelease
Fetched 15.0 kB in 1s (9881 B/s)
Reading package lists...

Building dependency tree...

Reading state information...
All packages are up to date.
+ sudo apt install -y chromium

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...

Reading state information...
Package chromium is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  chromium-bsu

E: Package 'chromium' has no installation candidate

Hello,
Après verification, cela veut dire que ton jeedom ne charge pas un JS du core, en effet, cette fonction est une fonction qui est directement inclus dans le code du core (Voir lien)

Cordialement
Thibaut

Bonsoir.
Sur ce RPI 3B+ distant je suis en 4062: lors du passage en 4122 le souci devrait disparaître ?
Cordialement.