NextDom / nextdom-core

NextDom Core >>
https://www.nextdom.org/
GNU General Public License v3.0
21 stars 13 forks source link

Problème d'affichage du widget pluging Google Cast #1469

Open iWils opened 4 years ago

iWils commented 4 years ago

Décrivez le bug Bonjour, au fil des mises à jour, je constate que les widgets dédiés au plugin remontent en erreur.

Pour info, le problème est constaté sur le thème Flat

Comment reproduire ? Étapes pour reproduire le problème :

  1. Installer le plugin Google Cast et ces dépendances
  2. Configurer un équipement
  3. Vérifier le plugin sur le dashboard

Screenshots image

Information matérielles

Résolution temporaire cd /usr/share/nextdom/core/template/dashboard/ rm -f cmd.action.message.googlecast_speak.html rm -f cmd.info.string.googlecast_playing.html ln -s /usr/share/nextdom/plugins/googlecast/core/template/dashboard/cmd.info.string.googlecast_playing.html cmd.info.string.googlecast_playing.html ln -s /usr/share/nextdom/plugins/googlecast/core/template/dashboard/cmd.action.message.googlecast_speak.html cmd.action.message.googlecast_speak.html chown -h www-data:www-data cmd.info.string.googlecast_playing.html chown -h www-data:www-data cmd.action.message.googlecast_speak.html

iWils commented 4 years ago

@byackee : c'est par rapport ce que nous avons discuter.

iWils commented 4 years ago

Bonsoir, Problème recenser lors de la migration 0.5.1 -> 0.6.0

restoring plugins...... PHP Warning: rmdir(/usr/share/nextdom/plugins/googlecast/tmp): Not a directory in /usr/share/nextdom/src/Helpers/FileSystemHelper.php on line 476 OK

vinceg77 commented 4 years ago

Up !

Lazare-C commented 4 years ago

Toujours pas de nouvelle?

ioull commented 4 years ago

J'avais le même problème suite à une migration de ma base de donnée de jeedom vers nextdom. En regardant le code du plugin google cast il y a ces lignes : plugin_info/install.php: linkTemplate('dashboard/cmd.info.string.googlecast_playing.html'); plugin_info/install.php: linkTemplate('dashboard/cmd.action.message.googlecast_speak.html'); et function linkTemplate($templateFilename) { $pathSrc = dirname(FILE) . '/../core/template/'.$templateFilename; $pathDest = dirname(FILE) . '/../../../core/template/'.$templateFilename;

if (!file_exists($pathDest)) {
    shell_exec('ln -s '.$pathSrc. ' '. $pathDest);
}

} ` Du coup je me suis dit que c'était un problème d'installation du plugin ... Bêtement au lieu de vérifier si les liens étaient bien présent dans le repertoire /usr/share/nextdom/core/template/dashboard/ j'ai desinstallé et reinstallé le plugin ... maintenant les liens y sont bien et je n'ai plus les XSym dans l'interface graphique ... Par contre c'est pas encore ca : image